Linux connection vsftpd: 500 OOPS: vsftpd: refusing to run with writable root inside chroot () error, vsftpdrefusing

Source: Internet
Author: User

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
  1. 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
  1. -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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.