aptitude install acl
mount -o remount,acl /dev/hda3
setfacl -R -m u:user:rwx /var/tmp/file
setfacl -R -m g:group:rwx /var/tmp/file
“-R” is recursive. To see ACL rights just write
getfacl /var/tmp/file
And you`ll see something like this:
# file: var/tmp/file
# owner: group
# group: group
user::rwx
user:user:rwx
group::rw-
group:group:rwx
mask::rwx
other::---
And next you can add more users/groups rights to this file ;-)
Žádné komentáře:
Okomentovat