1) create unix user (e.g. wsuser)
2) sudo apt-get install samba smbfs
3) sudo smbpasswd -a wsuser
4) sudo gedit /etc/samba/smbusers
#add this line
wsuser = “wsuser”
5) sudo gedit /etc/samba/smb.conf
# add two lines after “####### Authentication #######”
security = user
username map = /etc/samba/smbusers
# Uncomment below three lines
[homes]
comment = Home Directories
browseable = yes
# add line
writable = yes
————————————————–
通过以下方式訪问:
//linuxserver-IP/wsuser
refer
http://www.howtogeek.com/howto/ubuntu/install-samba-server-on-ubuntu/
http://www.howtogeek.com/howto/ubuntu/share-ubuntu-home-directories-using-samba/