1 issue
After vsftpd or vsftpd-ext is upgraded, the following error message may occur when you log on to the ftp site:
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
The reason is that the new version of vsftpd has the following updates:
-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.
This problem occurs because your user root directory is writable. However, in new updates, the chroot restriction feature is not allowed.
2 solution
To fix this bug, there are two solutions:
1. Remove the write permission of the root directory of the user. Run the following command: chmod a-w/path/to/users/root/directory.
However, this method allows the user to browse other file systems on the ftp server, without the significance of chroot.
2. Add the following statement to the configuration file of vsftpd to add security check.
For standard vsFTPd (vsftpd ):
Allow_writeable_chroot = YES
For the extended version of vsFTPd (vsftpd-ext ):
Allow_writable_chroot = YES
-- Rango Chen