[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: equalize permissions with chmod?
From: |
Eric Blake |
Subject: |
Re: equalize permissions with chmod? |
Date: |
Tue, 06 May 2008 19:54:54 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666 |
-----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 address@hidden
-----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-----