Re: acls on files

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

 



ACL support works pretty good in RHEL 3 and 4. Just add the option acl to your fstab file similar to the following:

/dev/Volume00/slash / ext3 defaults,acl 1 1



, and remount the filesystem like so:

mount -o remount /


After that is done, you can use getfacl to get the acls on a file, setfacl to set the acls on a file. For example,


setfacl -m g:guests:r-x  filename

Will give users in the guests group read and execute access to the file called filename. You can set acls on directories as well.

Samba will also allow you to propagate acls set on a directory to any file created under that directory by using the following options in your smb.conf file:

map acl inherit = Yes
inherit acls = Yes



I hope this helps,

James Cooley


David Bear wrote:

I'm looking at better flexibility regarding file system access.

rather than simple user/group ownerships, I'll like something more
like NTFS acls or AFS acls. I'm assuming this implies POSIX acls.


Using RHEL 4 what is the recommended way to have better file acls?

I'd like a group that has 'read' access, a group the has 'write'
access, and another group that has 'full'.. The difficulty is that I
will be sharing most files on the linux server through samba. I know
samba has some cool features with force group, dir mode, etc., but I'm
also worried about someone having shell access that may want to monkey
around on the machine.

Any recommendations?




-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux