檢視selinux的狀態以及關閉selinux
檢視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@]
[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部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1054701/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 檢視 SELinux狀態及關閉SELinuxLinux
- SElinux以及防火牆的關閉Linux防火牆
- 關閉selinuxLinux
- 使用sestatus命令來檢視SELinux的當前狀態Linux
- cmd 檢視防火牆狀態以及關閉防火牆
- SElinux的開啟和關閉Linux
- centos:開啟和關閉selinuxCentOSLinux
- 什麼是seLinux?Linux關閉seLinux有什麼影響?Linux
- Linux伺服器---關閉selinuxLinux伺服器
- RedHat 7 關閉防火牆及SElinuxRedhat防火牆Linux
- Redhat關閉SELinux和防火牆的辦法RedhatLinux防火牆
- Linux 臨時和永久關閉 SelinuxLinux
- Linux系統開啟或關閉SELinux。Linux
- linux修改主機名、關閉防火牆、selinuxLinux防火牆
- Centos配置叢集為什麼要關閉SELINUXCentOSLinux
- SELinuxLinux
- SELinux策略語法以及示例策略Linux
- Linux檢視埠使用狀態、關閉埠方法Linux
- SELinux: 如何讓selinux對某些命令放行,自定義selinux規則。Linux
- Centos7.2 上防火牆的狀態檢視和關閉CentOS防火牆
- selinux控制Linux
- switch_selinux.sh | 開啟或禁用SELinuxLinux
- SELinux Introduce - SELinux技術簡介(轉)Linux
- CentOS7最小化安裝後要做的事(2):關閉 SELinuxCentOSLinux
- 淺析SELinuxLinux
- SELinux tipsLinux
- 【資訊保安】SELinuxLinux
- SeLinux分析工具Linux
- CentOS8檢視防火牆狀態,開啟/關閉防火牆CentOS防火牆
- [linux]windows無法訪問samba的安全性問題(關閉selinux)LinuxWindowsSamba
- Linux中selinux是什麼意思?SELinux的主要作用有哪些?Linux
- SELinux如何永久禁用Linux
- SELinux簡單配置Linux
- SElinux配置與管理Linux
- SELinux 安全模型——TELinux模型
- linux下如何關閉防火牆?如何檢視防火牆當前的狀態Linux防火牆
- 揭開SELinux的秘密(轉)Linux
- 檢視spark程式執行狀態以及安裝sparkSpark