[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Users, groups and directory access

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
  ICQ - 412039

Attachment: signature.asc
Description: This is a digitally signed message part

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]