HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   pure-ftp does'nt run unter virtuozzo (http://www.howtoforge.com/forums/showthread.php?t=36749)

tom 19th June 2009 02:41

pure-ftp does'nt run unter virtuozzo
 
There are no error aften that
Quote:

server2:/proc# /etc/init.d/pure-ftpd-mysql start
Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -A -E -b -B
but in the control panel the monitoring says:

Quote:

error:
One or more needed Services are offline [More...]
FTP-Server: Offline
It's not possible to make any connections to ftp.

till 19th June 2009 08:45

There are two easy solutions, if this is your own server, run these command on the host server, replace the ID with the ID of your virtual machine:

Code:

VPSID=101
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

otherwise this:

http://www.howtoforge.com/forums/sho...re-ftpd+openvz

tom 19th June 2009 11:30

I've tried this:

Quote:

vi pure-ftpd-1.0.21/debian/rules

line 12 add --without-capabilities

optflags=--with-everything --with-largefile --with-pam --with-privsep --with-tls --without-capabilities


then build your .deb package and install dpkg -i pure-ftpd-mysql_1.0.21-8_i386.deb
But still the same:
FTP-Server: Offline

The start now looks like this (without -A -b)
h1609812:~# /etc/init.d/pure-ftpd-mysql start
Quote:

Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -E -B
And syslog shows
Quote:

Jun 19 10:36:10 server2 pure-ftpd: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted
The package is build as shown:

Code:

cd /tmp/pure-ftpd-1.0.21/
vi debian/rules (add --without-capabilities)
apt-get build-dep pure-ftpd
apt-get -b source pure-ftpd


till 19th June 2009 13:51

Quote:

Jun 19 10:36:10 server2 pure-ftpd: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted
Then you run still the old binary and not the one you build.


All times are GMT +2. The time now is 02:29.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.