VSFTPD Oops:cannot Change Directory issues

Source: Internet
Author: User
Tags ftp

Today in the configuration of FTP, all configured, after the start of the VSFTPD, through the user landing FTP, incredibly error:

C:\>ftp 10.10.1.239

Connected to 10.10.1.239

2.0.5 (VSFTPD)

User (10.10.1.239: (None)): Xaftp

331 Please specify the password.

Password:

Oops:cannot Change Directory:/home/xaftp

Login failed.

Ftp> ls

Oops:child died

Connection closed by remote host.

Think this problem is very strange, configuration certainly no problem, always hint oops:cannot change directory:/home/xaftp

Workaround:

In the terminal input command:

Setsebool Ftpd_disable_trans 1

Service VSFTPD Restart

It's OK!

In fact, this is the SELinux set command.

In fact, man Setsebool also know:

NAME

Setsebool-set SELinux Boolean value

It is OK to turn off the selinux before you are unfamiliar with selnux. Have time to study the SELinux.

If you want to use SELinux but unfamiliar, you can set the SELinux to permissive, which means that the SELinux rule starts, but only records the violation to log.

This article is from the "Technology Achievement Dream" blog, please be sure to keep this source http://ixdba.blog.51cto.com/2895551/526103

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.