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