500 OOPS: vsftpd: refusing to run with writable root inside chroot

500 OOPS: vsftpd refusing to run writable root chroot

500 OOPS: vsftpd refusing to run writable root chroot

I recently upgraded one of my Ubuntu servers to 12.04 LTS. I quickly found out that people who were trying to FTP couldn’t login. They got the following message: 500 OOPS: vsftpd: refusing to run with writable root inside chroot () Here is how to fix it.

 

This is a result of a security “feature” that has been added in the latest update, and released in the Ubuntu 12.04 upgrade. The problem is that users’ root directory is writable, which isnt allowed when using chroot restrictions in the new update.

Fortunately, the good folks at The Fronteer Group have backported vsftp until the full release of ver 3 of vsftp comes out. So here is what you do:

1. login as root (or sudo..) and do the following:

2. apt-get install python-software-properties

3. sudo add-apt-repository ppa:thefrontiergroup/vsftpd

4. sudo apt-get update

5. sudo apt-get install vsftpd

6. vi /etc/vsftpd.conf and add the following
allow_writeable_chroot=YES

7. sudo service vsftpd restart

Normally we all would just edit the /etc/vsftpd.conf file and be done with it. However, in the version of vsftp, this op tion dosen;t work. When version 3 of vsftp is included in the normal ubuntu server packageing, then all will be fixed. Until then, this workaround worked for me.

This article was originally posted on www.mikestechblog.com Any reproduction on any other site is prohibited and a violation of copyright laws.