When we restrict users from jumping out of their home directory, they often encounter this error when using the user to log on to ftp:
[HTML]View Plaincopy
- OOPS:vsftpd:refusing to run with writable root inside Chroot ()
This problem occurs at the latest due to the following update:
[HTML]View Plaincopy
- - 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.
Since 2.3.5, vsftpd enhanced the Security check, if the user is limited to their home directory, then the user's home directory can no longer have write permission! If the check finds that there are write permissions, the error is reported.
To fix this error,
programme One: Use the command chmod a-w/home/user to remove the Write permission from the user's home directory, and take care to replace the directory with your own.
Scenario Two: Add one of the following two items in the VSFTPD configuration file Allow_writeable_chroot=yes
Restart the VSFTPD service, the user can only be active in their own home directory
Original reference Study Daniel article, thank you: http://blog.csdn.net/bluishglc/article/details/42399439
Linux join vsftpd:500 OOPS:vsftpd:refusing to run with writable root inside chroot () error