xichao1980

导航

Samba安装

1.安装:
   sudo apt-get install samba                    // (sudo get temp root auth)
   sudo apt-get install smbfs
 
2. sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
    sudo gedit /etc/samba/smb.conf
    添加:

# added by xichao
[xichao]
path = /home/xichao/
writeable = yes
valid users = xichao
public = no
browseable = yes

 

3. 创建smb用户

sudo smbpasswd -xichao

 

4.测试

smbclient -L \\127.0.0.1 -U xichao

posted on 2014-03-23 15:54  xichao1980  阅读(282)  评论(0编辑  收藏  举报