I've upgraded my VPS to etch and tried to install pure-ftpd but run into a capabilites issue. When trying to start pure-ftpd I get...
Code:
pure-ftpd: [ERROR] Unable to switch capabilities : Operation not permitted
Some googling turned up a page about this problem when used in a VPS situation. A possible workaround was suggested...
Code:
# first, apt-get install vzctl
#!/bin/bash
set -x
VPSID=123
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 $VPSID --capability ${CAP}:on --save
done
But then the error is...
Code:
Unable to open /dev/vzctl: No such file or directory
Please check that vzdev kernel module is loaded and you have sufficient permissions to access the file.
and there is indeed no /dev/vzctl, but there is a /dev/vzfs. Would anyone know more about this or how to workaround not having to recompile pure-ftpd to work --without-capabilities ?
The post of interest was:
http://forum.openvz.org/?t=msg&goto=4268