After upgrading vsftpd to 2.3.5 you may be getting the following message when trying to log in.
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
This is due to the following update:
- Add stronger checks for the configuration error of running with a writeable
root directory inside a chroot(). This may bite people who carelessly turned
on chroot_local_user but such is life.
The problem is that your users root directory is writable, which isn’t allowed when using chroot restrictions in the new update. The following command will fix this problem, replace the directory with your users root:
chmod a-w /home/user
This is not a perfect solution as doing this can cause a few problems with things that need to write to the root directory.
A commenter, Dmitriy, has suggested 3 ways to also overcome this problem.