About Oops:cannot Change directory:/root error when connecting to the root user in FTP

Source: Internet
Author: User
1. View SELinux Status: Sestatus-b | grep FTP is exactly the view of the FTP state.

2, in the results of the appearance can be seen

Allow_ftpd_anon_write                       off
allow_ftpd_full_access                      off
allow_ftpd_use_cifs                         off
allow_ Ftpd_use_nfs                          off
ftp_home_dir                                off
ftpd_connect_db                             off
httpd_enable_ftp_server                     Off
sftpd_anon_write                            off
sftpd_enable_homedirs                       off
sftpd_full_access                           off
Sftpd_write_ssh_home                        off
tftp_anon_write                             off

such as Now we just have to set one of them on.

3, Setsebool-p Ftpd_disable_trans on or setsebool-p ftp_home_dir on

4. Restart Vsftpd:service vsftpd Restart

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.