歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> samba服務器入門操作(5)

samba服務器入門操作(5)

日期:2017/2/25 10:35:20   编辑:Linux教程
windows共享linux文件夾
修改/etc/samba/smb.conf文件夾,將security = user這一行改為security = share
然後在最後添加:
[test_guest]
path=/opt/test_guest
#路徑
writeable=yes
#表示可寫
browseable=yes
#表示可浏覽
guest ok=yes
#表示任何人可訪問

然後新建/opt/test_guest文件夾:mkdir /opt/test_guest
修改它的所有人為nobodhy(相當於訪問這個文件夾的任何人可讀):chown -R nobody:nobody /opt/test_guest
重啟samba服務:/sbin/service smb restart

這樣在windows下浏覽器中輸入:
\\192.68.0.38
就可以直接訪問了(前提是要把防火牆和selinux已經關了,不然就看不到了)
Copyright © Linux教程網 All Rights Reserved