ACLS on group
Hi All,
I have a group called "friends" with user "vimuth" and "duke" as it's members. As a root I have created a directory /iscsi. I want to set let the members of group friends to create files inside the /iscsi directory. Following is what I tried. Code:
setfacl -m d:g:friends:rwx /iscsi Code:
[root@rhce-client ~]# getfacl /iscsi Code:
[vimuth@rhce-client ~]$ touch /iscsi/llll Many thanks in advance. /Vimuth |
Hi,
you can use the commande chown, but first you should create the group friends and add users to this group. Code:
groupadd friends Code:
chown -R :friends /iscsi Code:
chmod -R g=rwx /iscsi Code:
chmod -R 770 /iscsi |
Hey Wad, thanks for the reply. However it is not the regular file permissions Im looking for but ACLS. You could do much more with ACLS. You too must learn it. :)
|
Hi,
Thnks for your advice :hattip: the firt step edit /etc/fstab file and change the default parameter to rw,acl Code:
LABEL=/iscsi /iscsi ext3 rw,acl 1 2 Code:
# reboot Code:
#usermod -a -G friends vimuth Code:
#setfacl --set u::rwx,g::rwx,o::- /iscsi Code:
#setfacl -d --set u::rwx,u:duke:rwx,g::rwx,g:friends:rwx,o::- /iscsi |
All times are GMT -5. The time now is 08:35 PM. |