[CentOS] Permissions

Timothy Kesten centos-lst at gmx.de
Thu Aug 3 18:34:25 UTC 2006


Am Donnerstag 03 August 2006 19:27 schrieb Chris Peikert:
> I have read through the Manuals and I have read through the website. I am
> still unable to find an answer on how to assign multiple groups to one
> directory or file with different permissions. Everything points to one
> group and one owner. Is there something else Linux uses for permissions to
> fix this problem?

suppose you have 2 groups

admin
audatex

admin should get rights "rwx"
audatex should get rigts "rw"

root at main tk]#setfacl -m group:admin:rwx /path/to/folder
root at main tk]#setfacl -m group:audatex:rw- /path/to/folder

inspect with

getfacl /path/to/folder

i.e.
[root at main tk]# getfacl /etc/hosts
getfacl: Removing leading '/' from absolute path names
# file: etc/hosts
# owner: root
# group: root
user::rw-
user:tk:rw-
group::r--
group:audatex:rwx
group:audatex:rw-
mask::rwx
other::r--

HTH
Timothy



More information about the CentOS mailing list