centos6.4 查看和关闭selinux
2015-03-07 15:48
357 查看
安装vsftpd服务后,客户端登录ftp报错:
查看selinux状态:
将SELINUX=enforceing 改为 SELINUX=disabled 重启机器就ok了
参照:/article/1283021.html
本文出自 “wonder--wander” 博客,请务必保留此出处http://wonderwander.blog.51cto.com/9831934/1618262
ftp> open 127.0.0.1 Connected to 127.0.0.1 (127.0.0.1). 220 (vsFTPd 2.2.2) Name (127.0.0.1:wander): ftpuser 331 Please specify the password. Password: 500 OOPS: cannot change directory:/home/ftpuser Login failed.原因是系统没有关闭selinux
查看selinux状态:
[wander@localhost ~]$ /usr/sbin/sestatus -v SELinux status: disabled //禁用selinux [wander@localhost ~]$ getenforce Disabled //禁用selinux [wander@localhost .ssh]$ getenforce Enforcing //启动关闭selinux方法:
#setenforce 0 #设置SELinux 成为permissive模式 #setenforce 1 设置SELinux 成为enforcing模式第二种方法:
#vim /etc/selinux/config 编辑文件 # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection.
将SELINUX=enforceing 改为 SELINUX=disabled 重启机器就ok了
参照:/article/1283021.html
本文出自 “wonder--wander” 博客,请务必保留此出处http://wonderwander.blog.51cto.com/9831934/1618262
相关文章推荐
- CentOS 6.4永久关闭SELinux
- CentOS 6.4永久关闭SELinux
- centos6 查看SELinux状态 关闭SELinux
- centos 7.0 查看selinux状态|关闭|开启
- centos 7.0 查看selinux状态|关闭|开启
- centos6 下查看SELinux状态 关闭SELinux
- centos防火墙开启、关闭、查看状态
- 在Linux系统中如何查看和关闭SELinux
- 查看 SELinux状态及关闭SELinux
- CentOS工作内容(二)关闭SELinux
- samba能看到linux中的文件目录,但是看不到文件的解决(查看SElinux状态&关闭SElinux)
- Centos Linux 系统下如何快速关闭SELINUX
- 针对 CentOS 的 SELinux 拦截 vsftpd 问题(不关闭SELinux)
- 查看 SELinux状态及关闭
- centos:开启和关闭selinux
- Centos 7 开放查看端口 防火墙关闭打开
- SELinux 的启动、关闭与查看
- 如何在CentOS 7.5上查看、禁用SELinux
- 查看 SELinux状态及关闭SELinux
- Fedora下查看SeLinux状态及关闭SeLinux