Pure-ftpd capabilities for OpenVZ hosts
marzo 24th, 2011 — 8:40pm
Trying to get pure-ftpd running on an OpenVZ virtual server and getting this message?
[ERROR] Unable to switch capabilities : Operation not permitted
Shut the VPS down, enter the host via SSH and enable needed capabilities for your VPS (where $VPS_ID is your VPS id, ie 101, 102…)
for CAP in CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE CHOWN DAC_READ_SEARCH SETGID SETUID NET_BIND_SERVICE NET_ADMIN SYS_CHROOT SYS_NICE; do vzctl set $VPS_ID --capability ${CAP}:on --save; done
That’s it :-)
