Linux connection vsftpd: 500 OOPS: vsftpd: refusing to run with writable root inside chroot () error, vsftpdrefusing
When a user cannot jump out of the main directory, this error is often encountered when the user logs on to FTP:
[Html]View plaincopy
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
This problem occurs at the latest due to the following updates:
[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.
Vsftpd enhanced the security check after 2.3.5. If the user is limited to his/her main directory, the user's main directory cannot have the write permission any more! This error is reported if you find that you have the write permission.
To fix this error,
Solution 1: run the command chmod a-w/home/user to remove the write permission of the user's home directory. Replace the directory with your own.
Solution 2: Add allow_writeable_chroot = YES in the configuration file of vsftpd.
Restart the vsftpd service so that you can only activate the service in your home directory.
The original reference to Learn Daniel article, thank: http://blog.csdn.net/bluishglc/article/details/42399439