selinux 怪怪 - Linux
By Kelly
at 2017-08-26T11:43
at 2017-08-26T11:43
Table of Contents
正在練習selinux
兩台虛擬機
一台安裝了 httpd了
想說先 vim /etc/httpd.conf.d/userdir.conf
把 <ifmdule mod_userdir.c>
#UserDir disabled <--這個加註解
然後 userdir public_html 刪除註解
接下來 systemctl stop httpd
systemctl start httpd
切回 student 使用者
mkdir public_html
vim /home/student/public_html/index.html(準備測試用的網頁)
http://server19.example.com/~student/index.html
chmod 701 /home/student
exit(登出 student,回到 root)
sealert -a /var/log/audit/audit.log
setsebool -P httpd_enable_homedirs 1
在 另外一台 虛擬機yum install links
links -dump http://server19.example.com/~student/index.html
但是出現 host not found
求解QQ
--
Tags:
Linux
All Comments
By Gary
at 2017-08-30T16:01
at 2017-08-30T16:01
By Jake
at 2017-09-04T07:01
at 2017-09-04T07:01
By Delia
at 2017-09-05T08:46
at 2017-09-05T08:46
Related Posts
SUSE重申對Btrfs文件系統的支持
By Olive
at 2017-08-25T21:46
at 2017-08-25T21:46
linux安裝起始sector疑問
By Catherine
at 2017-08-25T19:38
at 2017-08-25T19:38
變數中有變數作判斷該如何作? (eval)
By Lily
at 2017-08-25T18:38
at 2017-08-25T18:38
SAMBA bind_dlz AD 相關問題
By Steve
at 2017-08-25T18:30
at 2017-08-25T18:30
請教export用法
By Bennie
at 2017-08-24T02:19
at 2017-08-24T02:19