Oopsdirectory provides a solution for ftp users to encounter 500 OOPS: cannot change directory during connection.
After RHEL5 is configured, I want to use ftp to connect to linux in the Virtual Machine Under XP today, but the error "500 OOPS: cannot change directory:/root" will appear during ftp connection, how can this problem be solved?
FTP support is not enabled by default, so access is blocked.
Solution:
1. View SELinux settings
# Getsebool-a | grep ftp
Ftpd_disable_trans-> off or ftp_home_dir-> off
2. Use the setsebool command to enable
# Setsebool ftpd_disable_trans 1 or # setsebool ftp_home_dir 1
3. Check whether the current status is on.
# Getsebool-a | grep ftp
Ftpd_disable_trans-> on or ftp_home_dir-> on
4. restart # service vsftpd restart
OK. The problem is resolved.
In addition, setsebool uses the-P parameter. You do not need to enter this command every time you start the system.
# Setsebool-P ftpd_disable_trans 1
Or
# Setsebool-P ftp_home_dir 1