About Oops:cannot Change Directory:/root error when root user is connected in FTP

Source: Internet
Author: User
Tags ftp
1, view the status of SELinux: Sestatus-b | grep ftp exactly, just view the status of the FTP.

2, in the results of the show can be seen

Allow_ftpd_anon_write                       off
allow_ftpd_full_access out allow_ftpd_use_cifs off
allow_ Ftpd_use_nfs                          off
ftp_home_dir out 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

Like Now we just have to set one of them to 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.