返回 首页

linux smb 服务端配置


1. 安装

sudo apt-get install samba  

2. 修改默认配置

sudo vim /etc/samba/smb.conf 

global 选项中添加一条:

 security = user

添加一个选项:

[share]                                                                                                                                                                                                             
   comment = share test
   browseable = yes
   path = /home/wukt/tools/mount/
   read only = no

3. 设置用户

设置一个用户和密码:

sudo smbpasswd -a wukt
# 输入密码, 可以不和登录密码一样

重启:

sudo service smbd restart

4. 连接

在其他linux电脑上执行挂载:

sudo mount.cifs //hub.wktadmin.com/share /mnt/test_amount -o username=wukt


评论(0)

登录