-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Martin Bernreuther on 5/6/2008 4:22 PM: | E.g. a file with -rwxr-x--- should be changed to -rwxr-xr-x | and ----r----- should be changed to ----r--r--
chmod o=g | | I didn't find anything in the chmod man pages: It's there, but cryptic; compressed into the one line: Each MODE is of the form `[ugoa]*([-+=]([rwxXst]*|[ugo]))+'. You may want to try the info pages instead: $ info coreutils 'Symbolic Modes' then follow the link to the subsection on 'Copying Permissions' | | P.S.: | BTW, Is "find" the only tool to directly determine, if permissions are set? | "test" seems not to offer much here. Stat and ls can be used to determine permissions on a single file, but yes, find is the best tool for finding a set of files that have particular permissions (and the GNU findutils extensions beyond what POSIX requires make this even more flexible). - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkghC+4ACgkQ84KuGfSFAYC7AQCfcn8ghrkuYlL0y2lOZqHxIqSD BqoAn2O6cNZW8LUOLpsRK9r628nqN4Mu =89OG -----END PGP SIGNATURE----- _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils