Chinaunix首页 | 论坛 | 博客
  • 博客访问: 185748
  • 博文数量: 57
  • 博客积分: 1625
  • 博客等级: 上尉
  • 技术积分: 715
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-15 10:55
文章分类
文章存档

2012年(2)

2011年(12)

2010年(15)

2009年(19)

2008年(9)

我的朋友

分类: LINUX

2011-10-05 21:05:38


为解决RHEL6下VSFTP访问报500 OOPS: cannot change directory的问题,顺带了解了一下SELinux.
诊断SELinun导致的网络异常问题
setenforce 0 关闭SELinux(重启系统会恢复到enforce状态),然后观察网络应用是否有异常。如果仍然异常,时问题的原因不在SELinux。

getsebool -a |grep ftp
setsebool -p ftp_home_dir 1 

查看SELinux状态
getenforce

关闭SELinux
vi /etc/sysconfig/selinux

# 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=disable
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

相关命令
getsebool
setsebool
阅读(1768) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~