1. 在windows中如何用samba共享文件windows
按裝 yum install -y samba samba-client瀏覽器
打開samba的配置文件/etc/samba/smb.conf 在[global]部分測試
把:it
MYGROUP 改爲 WORKGROUPio
把:table
security = user 改爲 security = share test
最後在配置文件中加入以下配置cli
[share] comment = share all path = /tmp/samba browseable = yes public = yes writable = no
建立測試目錄:百度
mkdir /tmp/samba chmod 777 /tmp/samba touch /tmp/samba/sharefiles echo "111111" > /tmp/samba/sharefiles
啓動samba服務:配置
/etc/init.d/smb start
測試:
首先測試你配置的smb.conf是否正確,用下面的命令:
testparm
你應該會看到一個警告:WARNING: The security=share option is deprecated, 不過影響不大,無需管它。若是沒有錯誤,則在你的windows機器上的瀏覽器中輸入:
file://IP/share
看是否能訪問到sharefiles
後記:有密碼訪問,百度一下,你就知道