When we limit the user's inability to jump out of their home directory, this error is often encountered when using the user to log on to ftp:
[HTML] view plain copy OOPS:vsftpd:refusing to run with writable root inside Chroot ()
This problem occurs at the latest because of the following update:
[HTML] view plain copy-add stronger checks for the configuration error of running with a writeable root dir Ectory inside a chroot (). This could bite people who carelessly turned in Chroot_local_user but is life.
After 2.3.5, VSFTPD enhances the security check and if the user is restricted to its home directory, the user's home directory cannot have write permission anymore. If the check finds that there is write permission, the error is reported.
To fix this error, you can use the command chmod a-w/home/user to remove write permissions for the user's home directory, and pay attention to replacing the directory with your own. Or you can add one of the following two items to the VSFTPD configuration file:
Allow_writeable_chroot=yes