vsftpd:500 OOPS:vsftpd:refusing to run with writable root inside chroot () Error resolution

Source: Internet
Author: User

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

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.