samba和SELINUX 冲突

在使用Samba进行建立Window与Linux共享时,要是不能访问,出现“您可能没有权限使用网络资源”.

setsebool -P samba_enable_home_dirs on

setsebool -P samba_domain_controller on

setsebool -P samba_enable_home_dirs on

 

 

If you need to share a system created directory you can use one of the
#
following (read-only/read-write):
# setsebool -P samba_export_all_ro on
#
or
# setsebool -P samba_export_all_rw on

posted @ 2016-12-29 10:00  Null98  阅读(228)  评论(0编辑  收藏  举报