tail /var/log/message看到如此提示:
'/home/lyy' does not exist or permission denied when connecting to [lyy] Error was 权限不够
SELinux is preventing the samba daemon from reading users home directories.For complete SELinux messages. run sealert -l a0c1c154-bc37-44f5-a6eb-cfc88fed18b9
根据提示运行:
sealert -l a0c1c154-bc37-44f5-a6eb-cfc88fed18b9
可看到另外更详细的提示,再根据提示
Allowing Access
If you want samba to share home directories you need to turn on the
samba_enable_home_dirs boolean: "setsebool -P samba_enable_home_dirs=1"
The following command will allow this access:
setsebool -P samba_enable_home_dirs=1
运行:
setsebool -P samba_enable_home_dirs=1
等运行成功后,就能正常访问目录了。-P参数是永久有效的意思。
注意setsebool放在/usr/sbin中,如果系统提示setsebool命令找不到,加入上述路径即可。
欢迎访问最专业的网吧论坛,无盘论坛,网吧经营,网咖管理,网吧专业论坛https://bbs.txwb.com |
关注天下网吧微信,了解网吧网咖经营管理,安装维护:
本文来源:塞迪网 作者:佚名