System: Red Hat Enterprise Linux 5
Today, the online method is configured with a vsftp that can be accessed anonymously, but with root access to the Times 500 error as follows:
Connecting to 192.168.0.16, Dec 2009 09:35:27
< (VSFTPD 2.0.5)
> USER Test
< 331 please specify the password.
> Pass (Hidden)
< Oops:cannot change Directory:/root
< Oops:child died
Connection closed
Oops:child died
But on the internet to find some way to solve:
Solve:
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 ftp_home_dir off
Tftpd_disable_trans 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
Follow the above method: when the input setsebool-p ftpd_disable_trans on times wrong, the error is as follows:
Usage:setsebool [-P] Boolean value | Bool1=val1 Bool2=val2 ...
I use the man method to look at the Setsebool document:
NAME
Setsebool-set SELinux Boolean value
Synopsis
Setsebool [-P] Boolean value | Bool1=val1 Bool2=val2 ...
Enter Setsebool Ftpd_disable_trans on to complete the change.
If the selinux is not very familiar or the problem can not be solved, close the selinux, also can let vsftp normal use.
Close method: Modify the Selinux= "" in the/etc/selinux/config file as disabled, and then reboot
Original Address http://reason2003.blog.163.com/blog/static/11649946920091115103017836/