安裝samba
apt-get install samba
/etc/samba/smb.conf 末尾加上
[share]
comment = Share Folder
path = /home/share/
read only = no
guest ok = yes
writable = yes
修改文件夾權(quán)限
chmod -R go+rwx /home/share/
其中:
-R: Recursive宗侦,遞歸模式矢沿,修改該文件夾及其下所有文件和文件夾
go: g是Group組割捅,o是Other其他用戶
+ : 是添加權(quán)限
rwx:r是Read讀,w是Write寫倡鲸,x是eXecute執(zhí)行
重啟 samba 服務(wù)
/etc/init.d/samba restart