CentOS vsftp oops:cannot Change directory:/home/ftp

Source: Internet
Author: User

The system is CentOS, which is the Rh faction. I configured the VSFTPD and thought it was done, but the client access prompted the following error:
Oops:cannot Change Directory:/home/ftp
The reason for this is that his CentOS system has SELinux installed because the default is no FTP-enabled support, so access is blocked.
View SELinux Settings
# Getsebool-a|grep FTP
Ftpd_disable_trans--off
Or
Ftp_home_dir-->off

# setsebool ftpd_disable_trans 1
or
# setsebool ftp_home_dir 1
//See if the current state is on state
# Getsebool-a|grep ftp
ftpd_disable_trans--on
or BR style= "LINE-HEIGHT:25PX;" >ftp_home_dir-->on


The Setsebool uses the-p parameter, which is not required to enter this command every time
# setsebool-p Ftpd_disable_trans 1
Or
# setsebool-p Ftp_home_dir 1
# Service VSFTPD Restart

About SELinux Configuration

such as close, just warn, force, etc. need to edit/etc/sysconfig/selinux default is mandatory

CentOS vsftp oops:cannot Change directory:/home/ftp

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.