Hi Tom,
ACL or
Access Control List is enabled on your VPS, it's inbuilt with the latest
Virtuozzo kernel, hence no need to mount or change anything in the /etc/fstab.
Here are few tests which you can demonstrate the working of ACLs on your VPS.. :)
Check the installed RPMs:
Code:
[sup@noc ~]# rpm -qa | grep acl
acl-2.2.39-3.el5
libacl-2.2.39-3.el5
libacl-devel-2.2.39-3.el5
The syntax of setting up the ACLs:
Code:
[sup@noc ~]# setfacl -m g:GROUPNAME:r FILENAME
[sup@noc ~]# setfacl -m u:USERNAME:r FILENAME
Options used:
Code:
-m = modify
-x = remove
u: = user
g: = group
:r = read
:w = write
:x = execute
Setting up the ACLs:
Code:
[sup@noc ~]# chown tom.tom test.tar.gz
[sup@noc ~]# setfacl -m g:tom:r test.tar.gz
Checking the ACLs using getfacl command:
Code:
[sup@noc ~]# getfacl test.tar.gz
# file: test.tar.gz
# owner: tom
# group: tom
user::rw-
group::r--
group:tom:r--
mask::r--
other::r--
Few more examples:
Granting an additional user read access:
Code:
setfacl -m u:lisa:r file
Revoking write access from all groups and all named users (using the effective rights mask):
Code:
setfacl -m m::rx file
Removing a named group entry from a file's ACL:
Code:
setfacl -x g:staff file
Copying the ACL of one file to another:
Code:
getfacl file1 | setfacl --set-file=- file2
Copying the access ACL into the Default ACL:
Code:
getfacl --access dir | setfacl -d -M- dir
Please do let us know if you need any further assistance with this.. Wishing you a nice weekend :)