Friday, June 14, 2013

[Solved] Vsftpd with chrooted users not restart on Ubuntu 12.04

If you face this error on your Ubuntu 12.04 500 OOPS: vsftpd: refusing to run with writable root inside chroot()

Once edited the /etc/passwd to chroot the user with /bin/rbash and after changed permissions on the directory that will be the ftp home directory of the user, to enable vsftpd without errors on starting the service you need to follow the steps below:

1) wget http://http.us.debian.org/debian/pool/main/v/vsftpd/vsftpd_3.0.2-3_amd64.deb

2) dpkg -i vsftpd_3.0.2-2_amd64.deb

3) echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf

4) /etc/init.d/vsftpd restart

Now you will be able to restart your vsftpd service without any other issue.


Read more...