Prev Previous Post   Next Post Next
  #1  
Old 01-31-2007, 01:10 PM
markc markc is offline
Junior Member
 
Join Date: Jan 2007
Posts: 4
Default pure-ftpd and capabilities

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
Reply With Quote
 

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

Forum Jump


All times are GMT. The time now is 02:01 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.