管理布尔值

本文介绍了如何使用SELinux命令行工具getsebool和setsebool来查看和修改SELinux布尔值,特别关注了如何允许Apache HTTP Server读取用户家目录。

  1. [root@server76 test]# getsebool -a查看所有
  2. abrt_anon_write --> off 
  3. abrt_handle_event --> off 
  4. allow_console_login --> on 
  5. allow_cvs_read_shadow --> off 

 


  1. [root@server76 test]# setsebool httpd_enable_homedirs on 
  2. [root@server76 test]# semanage boolean -l |grep httpd_enable_homedirs 
  3. httpd_enable_homedirs          (on   ,  off)  Allow httpd to read home directories 

 


  1. [root@server76 test]# setsebool  -P httpd_enable_homedirs on 

 


  1. [root@server76 test]# semanage boolean -l |grep httpd_enable_homedirs 
  2. httpd_enable_homedirs          (on   ,   on)  Allow httpd to read home directories 

 


本文转自 369蓝宝 51CTO博客,原文链接:http://blog.51cto.com/3739387/1130108,如需转载请自行联系原作者

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值