ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 查看selinux的状态以及关闭selinux

查看selinux的状态以及关闭selinux

原创 Linux操作系统 作者:msdnchina 时间:2011-09-02 23:57:15 0 删除 编辑
查看selinux的状态:

[root@rac1 ~]# getenforce
Disabled
[root@rac1 ~]# sestatus
SELinux status: disabled
[root@rac1 ~]#


修改selinux为disabled(禁用),重启后此修改生效
[root@rac1 ~]# cat /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 - 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[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/161195/viewspace-1054701/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: linux下的防火墙
请登录后发表评论 登录
全部评论

注册时间:2008-07-30

  • 博文量
    498
  • 访问量
    1542065