---restore content starts---
New user created a separate working directory for new users after recently added virtual account after installing VSFTPD
Because virtual users need to upload files in the working directory, they must have the W permission for this directory, but each time you add W permission to this directory, the following error is reported:
vsftpd:500 OOPS:vsftpd:refusing to run with writable root inside Chroot ()
Online search solutions have said that since 2.3.5, VSFTPD enhanced security checks, if the user is limited to their home directory, the user's home directory can no longer have write permission! If the check finds that there are write permissions, the error is reported.
should be modified according to the following two scenarios
1.chmod a-w/path/user_working_directory
Or
2.allow_writeable_chroot=yes
But the need to upload in the /path/user_working_directory directory must have W permission, so chmod a-w/path/user_working_directory not feasible
Add allow_writeable_chroot=yes after vsftpd and error, cut and lost security, it is not advisable
The final correct solution is to change the owner of User_working_directory to Vsftpd.conf
Guest_username=ftpuser
Ftpuser All can
---restore content starts---
New user created a separate working directory for new users after recently added virtual account after installing VSFTPD
Because virtual users need to upload files in the working directory, they must have the W permission for this directory, but each time you add W permission to this directory, the following error is reported:
vsftpd:500 OOPS:vsftpd:refusing to run with writable root inside Chroot ()
Online Search Solutions all say
chmod a-w/path/username
Or
Allow_writeable_chroot=yes
But
vsftpd:500 OOPS:vsftpd:refusing to run with writable root inside chroot () Error resolution