從Linux共享到window(從Window共享到Linux相反)
# vi /etc/samba/smb.conf(配置文件)
在底部添加:
[cheney]
comment = cheney's stuff
path = /home/cheney
valid users = cheney
public = no
writable = yes
printable = no
create mask = 0765
之後
/etc/rc.d/init.d/smb restart(啟動samba服務)
最後
useradd cheney(增加一個新用戶)
smbpasswd -a cheney