導航:首頁 > 編程系統 > selinuxconfig

selinuxconfig

發布時間:2024-09-29 21:41:33

Ⅰ 在linux上創建文件夾出現 Permission denied 的情況,網上說可以用編輯/etc/selinux/config的方法;

在linux上創建文件夾出現Permission denied的情況,是設置錯誤造成的,解決方法如下:

1、首先通過ssh命令登錄linux伺服器。

Ⅱ 我的SElinux怎麼變成permissive了,原來是enforcing

如果要恢復運行SELinux則可以運行
# setenforce
1

這條命令會把SELinux設定成Enforcing模式

2.把SELinux永久設定為Permissive模式

這里需要講一下Permissive和Enforcing模式的區別。
SELinux有三種模式:Enforcing, Permissive and Disable.

Enforcing模式就是應用SELinux所設定的Policy,
所有違反Policy的規則(Rules)都會被SELinux拒絕
Permissive和Enforcing的區別就在於它還是會遵循SELinux的Policy,但是對於違反規則的操作只會予以記錄而並不會拒絕操作

Disable 顧名思義就是完全禁用SELinux

如果要永久設定為Permissive模式,我們就要修改SELinux的配置文件
/etc/sysconfig/selinux (在RHEL5下這是一個symbolic link to /etc/selinux/conf)
# 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=enforcing
#
SELINUXTYPE= type of policy in use. Possible values are:
# targeted -
Only targeted network daemons are protected.
# strict -
Full SELinux protection.
SELINUXTYPE=targeted

修改SELINUX=permissive,然後重新啟動就可以了

閱讀全文

與selinuxconfig相關的資料

熱點內容
後綴是acd是什麼文件 瀏覽:593
電腦無法打開視頻文件怎麼辦 瀏覽:904
如何簡化applewatch上的app 瀏覽:646
王者榮耀紫色字體代碼 瀏覽:186
surfacepro4系統版本 瀏覽:655
一加手機升級文件在哪個文件夾 瀏覽:537
u盤裝不了4g文件 瀏覽:740
豆神美育app怎麼退款 瀏覽:530
微信吃葯表情動態 瀏覽:425
網路廣播怎麼保存錄音 瀏覽:777
照片變漫畫ps教程 瀏覽:46
現在找不到王者cg文件 瀏覽:590
pdf文件怎麼編輯圖片要會員 瀏覽:303
編輯vi配置文件 瀏覽:788
磁鐵數據線為什麼壞了 瀏覽:878
jsios7 瀏覽:394
js失去焦點 瀏覽:606
shell應用程序 瀏覽:155
少兒編程都有哪些人學 瀏覽:274
ios天天動聽所有版本 瀏覽:631

友情鏈接