SUMMARY: File permissions under a particular directory

From: Benoit Audet <baudet_at_caprion.com>
Date: Wed Dec 19 2001 - 10:53:02 EST
Well, I guess it was a pretty simple question, because a got a quick anwser 
and it works!

A particular thanks to Ed Rolison for his anwser:
-----------------------------------------------------
setfacl works. You can use
setfacl -m 
default:user::rwx,default:group::rwx,default:other:rwx,default:mask:rwx 
<directory>
and this will override the umask when creating files.
You can even add 'specific' acl entries for specific users/groups.
Check the manpage for more info.
-----------------------------------------------------

Thanks!  Here's my original question:

>Date: Wed, 19 Dec 2001 10:41:27 -0500
>To: sunmanagers@sunmanagers.org
>From: Benoit Audet <baudet@caprion.com>
>Subject: File permissions under a particular directory
>
>Hello experienced admins,
>
>I had a request by a group of users here: they want the new files created 
>under a certain directory to me read-write-executable for all users, of 
>all groups, on the server.  Unfortunately, by default, files are created 
>(by umask) to be only readeable, and for most directories on the machine, 
>it's perfect this way.
>
>I browsed the wed all around to see what's could be the awnser for this 
>question, and it seems that "ACL" could be.  But, as far as I could found, 
>I was only able to apply correct permissions on files and directories by 
>executing the "setfacl" for a particular directory or a particular 
>file.  Even, when I do so for a directory, files created after under it's 
>hierarchy are not seted with good permissions.
>
>Is there a way that some of you knows to apply a rule that will gives 
>correct permissions to all the files created under a particular directory?
>
>Thanks!

________________________________
    Benoit Audet

    Administrateur Unix (Sun Solaris)
    Caprion Pharmaceutiques
    7150, Rue Alexander-Fleming
    Montreal (QC), H4S 2C8
    514.940.3600 ext. 3877

    baudet@caprion.com
________________________________
Que serait la vie sans le parachutisme?
Vive l'iti!  8^)
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Dec 19 09:54:20 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:30 EST