ubuntu 搭建 samba 服务器

 

1. sudo apt-get install samba samba-common

2. sudo vi /etc/samba/smb.conf

[alair's share]
    path = /home/alair/worksapce
    public = yes 
    writable = yes 
    valid users = alair  ; 强制以用户alair 登录 samba 服务器

3. 在samba 服务器中加入用户alair(alair 已经是ubuntu系统用户)
    smbpasswd -a alair 

4. 重启samba 服务器
sudo /etc/init.d/samba restart

5. 在windows 上登录samba 服务器
\ip\alair's share

转:THE NETWORK FOLDER SPECIFIED IS CURRENTLY MAPPED USING A DIFFERENT USER NAME AND PASSWORD

https://mssqltrek.com/2013/08/21/the-network-folder-specified-is-currently-mapped-using-a-different-user-name-and-password/

posted on 2015-12-26 14:55  沉沉-_-  阅读(353)  评论(0编辑  收藏  举报

导航