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

原文地址:https://www.cnblogs.com/neo98/p/6231798.html