導航:首頁 > 編程系統 > 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相關的資料

熱點內容
迷你編程開始的教程怎麼過 瀏覽:216
上海國衡網站有什麼用 瀏覽:29
掃描文件如何全選 瀏覽:363
directx一鍵修復工具 瀏覽:620
如何恢復谷歌同步中刪除的文件夾 瀏覽:215
安卓51轉換為系統應用 瀏覽:789
哪裡看雙11數據 瀏覽:783
文件變成exe如何恢復 瀏覽:49
為什麼逆戰會缺少文件 瀏覽:180
蘋果4s版本怎麼更新 瀏覽:418
手機網路共享密碼錯誤 瀏覽:535
電腦清理沒用的文件 瀏覽:211
資料庫關系運算符號 瀏覽:968
如何把微雲網路文件 瀏覽:239
win10怎麼防止文件被刪除 瀏覽:82
香港有蘋果翻新機嗎 瀏覽:15
c讀取文件的行數 瀏覽:59
重慶少兒編程哪裡好 瀏覽:568
nes游戲在哪個文件夾里 瀏覽:643
ps怎麼剪貼到別的文件 瀏覽:352

友情鏈接