Bug fixes after vsftpd upgrade

Source: Internet
Author: User

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

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.