Ubuntu 12.04 64bit system installed under the VSFTPD, when logged in prompted by OOPS:vsftpd:refusing to run with writable root inside Chroot (). The root cause is that, starting with version vsftpd_2.3.5, the writable permissions for the roots are canceled. Therefore, the general solution on the Internet is the following two kinds of solutions:
方案一
$ chmod a-w /vaf/ftp
方案二
$ vim /etc/vsftpd.conf add the following
allow_writeable_chroot=YES
It seems that the second way is more perfect, but when I put the Allow_writeable_chroot=yes configuration item, when I restart the VSFTPD service found that it does not work properly (21-Port no program in the monitoring), so the Internet to find solutions, found a variety of statements , some people say that the configuration item is allow_writable_chroot (less e), and that the configuration item is allow_writable_root (less ch), etc., after I test, found that all is not working. Finally, a workable method was found.
Complete solution for Ubuntu 12.04 64bit
$ apt-get install python-software-properties
$ sudo add-apt-repository ppa:thefrontiergroup/vsftpd
$ sudo apt-get update
$ sudo apt-get install vsftpd
$ vim /etc/vsftpd.conf and add the following
chroot_local_user=YES
allow_writeable_chroot=YES
$ sudo service vsftpd restart
OOPS:vsftpd:refusing to run with writable root inside Chroot ()