Oops:cannot Change Directory solution when FTP user connection occurs

Source: Internet
Author: User
Tags ftp connection

Tag:linux   centos    virtual machine    ftp   

rhel5 in the configuration, today want to use FTP to connect to Linux in the virtual machine under XP, but the FTP connection will appear "Oops:cannot Change directory:/ Root "error, how to solve it?


      The default is no FTP-enabled support, so access is blocked.


Fix:


1.   View SELinux settings
          # Getsebool-a | grep FTP
Discover FTP D_disable_trans–> off   or      ftp_home_dir–>off




2.   Use the Setsebool command to turn on
     # setsebool Ftpd_disable_trans 1     or    # Setsebool ftp_home _dir 1




3.   See if the current status is on status
       # getsebool-a|grep FTP
      At this time  ftpd_disable_trans–> on     or    ftp_home_dir–>on


4. Last reboot &N Bsp   # service VSFTPD restart


   ok, the problem is resolved.


Additional     Setsebool use the-p parameter, you do not need to enter this command every time you boot
# setsebool-p Ftpd_disable_trans 1
or
# Setsebool -P Ftp_home_dir 1

Workaround for FTP user connection with oops:cannot change directory

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.