selinux配置disable後系統無法啟動
阿新 • • 發佈:2018-06-14
get 思路 perm ssi AR his policy AD 鍵盤 故障現象:selinux 配置 disabled 後開機卡在滾動條無法進系統
解決思路:單用戶模式下修改修改selinux 配置
解決思路:單用戶模式下修改修改selinux 配置
單用戶進入方式
1)開機按 鍵盤 e 進入系統
2)找到 linux16 開始,LANG=zh_CN.UTF-8結尾一行,尾部加 ( 空格 加上 selinux=0)
3)然後 ctrl + x 啟動,就看到熟悉的登錄界面。
修改正確selinux
vim /etc/selinux/config
vim /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 three two values:
targeted - Targeted processes are protected,
minimum - Modification of targeted policy. Only selected processes are protected.
mls - Multi Level Security protection.
SELINUXTYPE=targeted
selinux配置disable後系統無法啟動