码迷,mamicode.com
首页 > 系统相关 > 详细

查看selinux与关闭方法

时间:2019-02-15 15:37:23      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:linux与   ESS   control   命令   prot   protect   RoCE   processes   load   

查看当前用户selinux 状态

[root@oldboy-09 ~]# getenforce 
Disabled
[root@oldboy-09 ~]# setenforce 
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
            允许     开启|关闭

当前用户临时修改命令为:setenforce 0   

永久关闭方法为:编辑/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=disabled         
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted

  

查看selinux与关闭方法

标签:linux与   ESS   control   命令   prot   protect   RoCE   processes   load   

原文地址:https://www.cnblogs.com/imp-W/p/10383686.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!