如何开启或关闭SELinux
来源:互联网 发布:alpha beta剪枝算法 编辑:程序博客网 时间:2024/05/16 10:58
查看selinux
[root@mode ~]# getenforce
Disabled
[root@mode ~]# /usr/sbin/sestatus -v
SELinux status: disabled
临时关闭selinux
[root@mode ~]# setenforce 0
setenforce: SELinux is disabled
永久关闭selinux的两种方式
[root@mode ~]# 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 - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
~
~
第二种方式:
~
[root@mode ~]# cat /boot/grub/menu.lst
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$P6MX17N9$upRaE9GPh/J6Y2.weHY7B0
title CentOS (2.6.18-308.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-308.el5 ro root=LABEL=/ selinux=0
initrd /initrd-2.6.18-308.el5.img
- 如何开启或关闭SELinux
- 开启/关闭SELinux
- SELinux 开启关闭
- SELinux 开启和关闭
- selinux的开启与关闭
- SElinux的开启和关闭
- SELinux 和 iptables 开启关闭
- 如何编程实现开启或关闭GPS?
- 如何编程实现开启或关闭GPS?
- 如何编程实现开启或关闭GPS?
- 如何编程实现开启或关闭GPS?
- 如何编程实现开启或关闭GPS
- 如何关闭或开启隧道适配器
- 如何关闭SeLinux
- 如何关闭selinux
- 如何关闭selinux
- linux如何关闭selinux
- SELinux开启与关闭各参数说明
- 接口汇总
- 在安卓4.2.2的系统上,具有系统权限的应用不能读写SD卡
- php引用(&)详解及注意事项
- Sizeof() 那点事~
- Android 自定义控件打造史上最简单的侧滑菜单
- 如何开启或关闭SELinux
- 关于EBS磁盘的IOPS,以及IOPS是如何测量的
- Qt学习之QMainWindow(一)QMainWindow简介
- Android中相册的数据结构
- eclipse下ruby调试环境整理
- 2.1 Socket系统调用
- 预热EBS卷Pre-Warming Amazon EBS Volumes
- Android下强制显示ActionBar的overflow按钮
- hust1384---The value of F[n]