OpenVZ Forum


Home » General » Support » ACLs on VPS!
ACLs on VPS! [message #26404] Wed, 23 January 2008 05:30 Go to next message
doublet is currently offline  doublet
Messages: 6
Registered: November 2007
Junior Member
Hi, I'm a customer of a couple of LxAdmin VPSs with CentOS.

After searching some info about making an anonymous FTP server, I decided to modify some parameters on pure-ftpd default installation. Works fine, except that I want to use 2 different users accessing to a same folder, the standard user and the anonymous user.

After seeing that, I decided to use ACLs to avoid the ftpd error "Sorry, we were unable to read [.]", but seems that ACLs maybe are not compatible with VPSs, or maybe I'm just lost ....

Any idea?

Thanks!
Re: ACLs on VPS! [message #26501 is a reply to message #26404] Fri, 25 January 2008 07:54 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

can you please specify what operation with ACL has failed.

Thank You!
Re: ACLs on VPS! [message #26529 is a reply to message #26501] Fri, 25 January 2008 16:10 Go to previous messageGo to next message
doublet is currently offline  doublet
Messages: 6
Registered: November 2007
Junior Member
Well ... i guess ACL is not implemented in this kind of kernels, am I right?

also commands are not there.
Re: ACLs on VPS! [message #26560 is a reply to message #26529] Mon, 28 January 2008 16:45 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Quote:

also commands are not there

I think you need appropriate packages: for example on my Fedora node
$rpm -qf `which getfacl`
acl-2.2.39-3.1.fc7

Quote:

Well ... i guess ACL is not implemented in this kind of kernels, am I right?

I've experimented with ACL a little time on my node. So I guess that it is possible to use ACL on VPS but I've spent a very little time to affirm this issue for sure.

I'll be very appreciate you if try to use ACL inside VPS and if something will be wrong please report a problem there. Many thanks you!
Re: ACLs on VPS! [message #26562 is a reply to message #26560] Mon, 28 January 2008 17:11 Go to previous messageGo to next message
doublet is currently offline  doublet
Messages: 6
Registered: November 2007
Junior Member
I use CentOS, not an expert about this issues, but I'll try to do when have some time .... wich command u think should I use to install those packages?

Thanks so much maratrus! Smile
Re: ACLs on VPS! [message #26563 is a reply to message #26562] Mon, 28 January 2008 17:25 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

1.
Quote:

I use CentOS

Is it your HN or VPS? Please specify the ostemplate of your VPS.
2. rpm -qa | grep acl (on HN and inside VPS)
3. if you have yum installed on your system you can simply do:
# yum install acl
(on HN) - to install acl package on HN
vzyum <VE_ID> install acl
(on HN) - to install acl package to your VPS's with VPS ID = <VE_ID>.
Re: ACLs on VPS! [message #26566 is a reply to message #26563] Mon, 28 January 2008 19:00 Go to previous messageGo to next message
doublet is currently offline  doublet
Messages: 6
Registered: November 2007
Junior Member
[root@xl2u~]# screen -r
yum install acl[root@rjd2 ~]# yum install acl
Setting up Install Process

Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.9 MB 00:02
dag : ################################################## 8418/8418
Added 115 new packages, deleted 0 old in 59.38 seconds
primary.xml.gz 100% |=========================| 70 kB 00:00
update : ################################################## 225/225
Added 26 new packages, deleted 0 old in 6.36 seconds
primary.xml.gz 100% |=========================| 25 kB 00:00
lxlabsupda: ################################################## 61/61
Added 0 new packages, deleted 0 old in 0.59 seconds
primary.xml.gz 100% |=========================| 1.9 MB 00:03
rpmforge : ################################################## 8418/8418
Added 115 new packages, deleted 0 old in 52.58 seconds
primary.xml.gz 100% |=========================| 3.4 kB 00:00
lxlabslxup: ################################################## 6/6
Added 0 new packages, deleted 0 old in 0.05 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for acl to pack into transaction set.
acl-2.2.23-5.3.el4.i386.r 100% |=========================| 6.2 kB 00:00
---> Package acl.i386 0:2.2.23-5.3.el4 set to be updated
--> Running transaction check

Dependencies Resolved

============================================================ =================
Package Arch Version Repository Size
============================================================ =================
Installing:
acl i386 2.2.23-5.3.el4 base 59 k

Transaction Summary
============================================================ =================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 59 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): acl-2.2.23-5.3.el4 100% |=========================| 59 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: acl ######################### [1/1]

Installed: acl.i386 0:2.2.23-5.3.el4
Complete!
[root@xl2u~]# rpm -qa | grep acl
libacl-2.2.23-5
acl-2.2.23-5.3.el4

Seems that app installed perfectly.

This is a VPS, provider should check if is ACL inastalled on node.

About the ostemplate, i guess is "hostinabox" lxadmin on centos 4.5.

About the node, i can do nothing, maybe ask provider if they have that libs installed ... or maybe i can check that?

testing setfacl now .... never used it before! Wink

Re: ACLs on VPS! [message #26574 is a reply to message #26566] Mon, 28 January 2008 20:08 Go to previous message
doublet is currently offline  doublet
Messages: 6
Registered: November 2007
Junior Member
Got it .... Smile

[root@xl2u~~]# getfacl program-install.zip
# file: program-install.zip
# owner: root
# group: root
user::rw-
group::r--
other::r--

[root@xl2u~~]# setfacl -m g:adifad:r program-install.zip
[root@xl2u~~]# getfacl program-install.zip
# file: program-install.zip
# owner: root
# group: root
user::rw-
group::r--
group:adifad:r--
mask::r--
other::r—

Cheers and thanks for all! 
Previous Topic: disk quota
Next Topic: VLAN Setup
Goto Forum:
  


Current Time: Mon Apr 15 23:04:38 GMT 2024

Total time taken to generate the page: 0.01654 seconds