Answers:
在两台机器上试试这个。
首先,备份现有的smb.conf文件:
sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.old
然后把它放在/etc/samba/smb.conf中:
[global]
server string = Your computer's description
workgroup = Your workgroup name
security = user
map to guest = Bad User
name resolve order = bcast hosts wins
client lanman auth=Yes
wins support = yes
include = /etc/samba/smbshared.conf
然后在/etc/samba/smbshared.conf中输入:
[Desktop] ; user="yourusername"
force user = yourusername
path = /path/to/share
writable = yes
public = yes