Re: [CentOS] Permissions

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



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@main tk]#setfacl -m group:admin:rwx /path/to/folder
root@main tk]#setfacl -m group:audatex:rw- /path/to/folder

inspect with

getfacl /path/to/folder

i.e.
[root@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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux