Users, groups and directory access

David L Norris dave at webaugur.com
Wed May 5 20:09:52 UTC 2004


On Wed, 2004-05-05 at 07:42, duncan brown wrote:
> David L Norris said:
> 
> > # make permissions inherit to children...
> > chmod g+rwxs /project
> 
> you'd probably also want the following:
> 
> chmod -R g+rws /project

You probably don't want to give all the existing files in the /project
directory the setgid bit...  (If you have an executable in there with
o+x privileges you've just compromised your group security.)  And you
may not want to give others blanket-write access to all your existing
files.  To recursively change the perms on an existing set of
directories and files:

  # Change perms of all directories
  find /project -type d -exec chmod 2775 {} \;

  # Change perms of all files, use with great care
  find /project -type f -exec chmod 0664 {} \;

-- 
 David Norris
  http://www.webaugur.com/dave/
  ICQ - 412039
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20040505/4172fa51/attachment-0002.bin 


More information about the users mailing list