Chinaunix首页 | 论坛 | 博客
  • 博客访问: 343405
  • 博文数量: 26
  • 博客积分: 3726
  • 博客等级: 中校
  • 技术积分: 621
  • 用 户 组: 普通用户
  • 注册时间: 2005-03-29 08:59
文章分类

全部博文(26)

文章存档

2008年(26)

分类: LINUX

2008-06-26 16:40:25

关闭SELinux的方法:
修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。
如果不想重启系统,使用命令setenforce 0
注:
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式
在lilo或者grub的启动参数中增加:selinux=0,也可以关闭selinux

#---------------------------------------------------------------
查看selinux状态:
/usr/bin/setstatus -v
如下:
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted
 
getenforce/setenforce查看和设置SELinux的当前工作模式
阅读(7690) | 评论(2) | 转发(0) |
0

上一篇:sudo用法与实例介绍

下一篇:udev详解

给主人留下些什么吧!~~

chinaunix网友2009-10-04 09:12:16

用到, 能上传ftp文件了

chinaunix网友2008-09-16 12:46:26

setenforce 0 RHEL5上不行,centos5上也不行。