PDA

View Full Version : chroot -> pure-ftpd


sparky87
4th March 2009, 23:18
Hi,
i have installed pure-ftpd from source on my Fedora. i also use virtual users stored in MySQL.
everything seems to be working. mysql authentication, finding users homedir in mysql table and so on.
only one problem i have, is that chroot doesnt work. of course in my config file is: ChrootEveryone yes.
and in fact, if the users are stored in PureDB, chroot works fine, without problems. so i guess, the problem
won't be in my pureftpd config file. but i don't understand , why chroot doesn't work, when the users are stored in MySQL?
i use pure-ftpd.1.0.21. and start it like this:
/etc/init.d/pure-ftpd start
Starting : Pure-FTPd Server Running: /usr/local/pureftpd/sbin/pure-
ftpd -A -b -c100 -B -C4 -D -E -fftp -H -I5 -lmysql:/usr/local/pureftpd/etc/mysql.conf -L10000:3 -m4 -s -U133:022 -u2000 -i -Oclf:/var/log/pureftpd/transfers.log -j -g/var/run/pure-ftpd/pure-ftpd.pid -k95 -Z

thanks for your answers

falko
5th March 2009, 19:56
Any errors in your logs?

BTW, is there a special reason why you compiled PureFTPd? You could try this tutorial instead: http://www.howtoforge.com/virtual-hosting-with-pureftpd-mysql-fedora9

sparky87
5th March 2009, 20:56
thanks, i tried tutorial too. and i tried to isntall pure-ftpd by yum too, of course i have no reason to install it from source. i try everything. but anything helped yet.

errors on logs -> in /var/log messages nothing. and the pure-ftpd havent done any other logs. so i really don't know what to do...

falko
6th March 2009, 15:08
Did you disable SELinux?

sparky87
6th March 2009, 15:41
of course :) but i solved it now, there was some another problem in MySQL...
but thanks, falko