歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> SAMBA配置“你可能沒有權限訪問網絡資源”的問題解決方法

SAMBA配置“你可能沒有權限訪問網絡資源”的問題解決方法

日期:2017/3/1 13:58:08   编辑:關於Linux
SAMBA配置“你可能沒有權限訪問網絡資源”的問題解決方法 打開圖形配置工具system-config-securitylevel-tui 在添加samba後保存退出 配置SElinux [root@localhost samba]# getsebool -a | grep samba samba_domain_controller --> off samba_enable_home_dirs --> off samba_export_all_ro --> off samba_export_all_rw --> off samba_share_nfs --> off use_samba_home_dirs --> off virt_use_samba --> off [root@localhost samba]# setsebool -P samba_export_all_rw=1(=0是關閉) [root@localhost samba]# setsebool -P samba_export_all_ro=1 [root@localhost samba]# getsebool -a | grep samba samba_domain_controller --> off samba_enable_home_dirs --> off samba_export_all_ro --> on(如果只讀共享的文件只開此項就行) samba_export_all_rw --> on(如果讀寫,只開此項就行,修改文件時要看文件的chmod屬性。) samba_share_nfs --> off use_samba_home_dirs --> off virt_use_samba --> off
Copyright © Linux教程網 All Rights Reserved