UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server and VPS Forum > Technical Support > VPS Hosting - Virtual Private Servers

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-05-2009, 10:28
new member
 
Join Date: Mar 2009
Location: Reading, UK
Posts: 7
Default VPS Access Contol Lists support

Hi,
for my Linux VPS in need to enable Access Control Lists as a way to give some users Read/Write access to certain files whilst keeping the general permissions tight. To enable access control lists one generally needs to specify the acl option in /etc/fstab but on the VPS the root file system is not mounted through /etc/fstab.

If anyone knows how to sets mount options on VPSs or how to get ACL working their help would be greatly appreciated.

Thanks,
Tom Wright
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-05-2009, 22:35
Rock's Avatar
System Administrator (eUKhost.com)
 
Join Date: Dec 2006
Location: localhost
Posts: 1,932
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 L.

http://www.eUKhost.com
Windows Hosting || Windows Reseller Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-05-2009, 22:57
new member
 
Join Date: Mar 2009
Location: Reading, UK
Posts: 7
Default

Thanks for your help,
it seems to be working fine now (I think the problem before is that I was not testing it right (apparently cd does not work without +x ) )

It is great that you are one of the few hosts with ACL set up by default and it has really saved me a lot of time

Sadly it looks like ACL rules are not applied in SFTP so I guess I will need to look at NFS again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-05-2009, 00:08
Rock's Avatar
System Administrator (eUKhost.com)
 
Join Date: Dec 2006
Location: localhost
Posts: 1,932
Thumbs up

You're welcome.. Tom Good luck with it..
__________________

Rock _a.k.a._ Jack L.

http://www.eUKhost.com
Windows Hosting || Windows Reseller Hosting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 15:26.

 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles

Web Hosting
Web Hosting Service