博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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/

 

posted on 2012-05-15 17:41  Likwo  阅读(270)  评论(0编辑  收藏  举报