View Single Post
  #2 (permalink)  
Old 09-05-2009, 23:35
Rock's Avatar
Rock Rock is offline
Technical Support (eUKhost.com)
 
Join Date: Oct 2006
Location: localhost
Posts: 3,356
Send a message via MSN to Rock Send a message via Skype™ to Rock
Smile

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 :)
__________________

Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
Follow eUKhost on Twitter || Join eUKhost Community on Facebook

For complaints, grievances or suggestions kindly email our FeedBack Dept.
Proper action will be taken accordingly & instantaneously!
Reply With Quote