After installing the VSFTPD service, client login FTP error:
Ftp> Open 127.0.0.1Connected to 127.0.0.1 (127.0.0.1). (VsFTPd 2.2.2) Name (127.0.0.1:wander): ftpuser331 please SPE Cify the password. password:500 oops:cannot Change Directory:/home/ftpuserlogin failed.
The reason is that the system does not shut down SELinux
To view the SELinux status:
[[email protected] ~]$/usr/sbin/sestatus-v SELinux status:disabled//disable Selinux[[email protected] ~]$ g Etenforce Disabled//disable Selinux[[email protected]. ssh]$ Getenforce Enforcing Start
To close the SELinux method:
#setenforce 0 #设置SELinux become permissive mode #setenforce 1 set SELinux to be enforcing mode
The second method:
#vim/etc/selinux/config Edit Files # This file controls the state of SELinux in the system.# selinux= can take one of the these THR EE values:# enforcing-selinux Security policy is enforced.# permissive-selinux prints warnings instead of enfo rcing.# disabled-no SELinux policy is loaded. selinux=enforcing# Selinuxtype= can take one of these, values:# targeted-targeted processes is protected,# m Ls-multi level Security protection.
Change the selinux=enforceing to selinux=disabled restart the machine on the OK
Reference: http://www.jb51.net/LINUXjishu/192576.html
This article is from the "Wonder--wander" blog, make sure to keep this source http://wonderwander.blog.51cto.com/9831934/1618262
centos6.4 Viewing and closing SELinux