Date: Fri, 7 Dec 2001 00:57:48 +0100 From: "Anthony Atkielski" <anthony@freebie.atkielski.com> To: "Frank Laszlo" <nez_lists@yahoo.com>, "FreeBSD Questions" <freebsd-questions@freebsd.org>, <jtaylor@precisioncs.net> Subject: Re: Modifying only certain bits with chmod Message-ID: <003401c17eb1$d0497230$0a00000a@atkielski.com> References: <B8351BB0.1357D%nez_lists@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jason and Frank, See ftp://ftp.atkielski.com/pub/custom/nls.tar.gz Hopefully I made the tarball correctly; I downloaded it and expanded it and it looked correct. The command is still named ls; you'll need to rename it to put it alongside the standard command. I haven't changed the man page for the command, but if you just use 'p' as an option (lowercase), e.g., "ls -lp", you'll get the permissions as four octal digits instead of the usual letter expansion. I also put the tweaked version of chmod out there: ftp://ftp.atkielski.com/pub/custom/nchmod.tar.gz This tweaked version lets you specify "xxx:yyy" in the mode field; if you use this format, the one bits in the mask yyy identify which bits in xxx are to replace the corresponding bits in the file mode field, and the zero bits in the mask identify the bits in the file mode field that are to remain unchanged. Same comments as for the ls tweak above with respect to man page and command name. Neither has been exhaustively tested but they both seem to work. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003401c17eb1$d0497230$0a00000a>