Vsftpd 500 OOPS: cannot change directory solution

Source: Internet
Author: User

Vsftpd 500 OOPS, the result is restarted. However, the problem still persists, and the Error 500 OOPS: cannot change directory is reported. The copper drum was found to be due to selinux for half a day. Go to/etc/selinu. View the config file and find that # This file controls the state of SELinux on the system. # SELINUX = can take one of these three values: # enforcing-SELinux security policy is enforced. # permissive-SELinux prints warnings instead of enforcing. # disabled-No SELinux policy is loaded. SELINUX = enforcing --- An extra row. This row is the same as the following and the value assignment is incorrect. Commented out # SELINUXTYPE = can take one of these two values: # targeted-Targeted processes are protected, # mls-Multi Level Security protection. after SELINUXTYPE = targeted SELINUX = disabled is changed, you can use setenforce 0 to make it take effect temporarily because the machine cannot be restarted. Later, I checked Baidu to find out that SELINUX has three options: "disabled", "permissive", and "enforcing. Disabled does not need to be said. permissive is effective for Selinux, but even if you violate the policy, it will allow you to continue the operation, but record the content of your violation. It is very useful when developing policies. It is equivalent to the Debug mode. Enforcing means that if you violate the policy, you cannot proceed. SELINUXTYPE: Currently, there are two main categories: targeted developed by red hat, which only protects the main network services, such as apache, sendmail, bind, and postgresql, all domain Names that do not belong to them allow them to be in the unconfined_t. They have high import performance, good availability, but cannot be protected as a whole.

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.