vim /etc/samba/smb.conf
[global]
'''
config file = /etc/samba/conf.d/%U
[share]
path = /data/share1
mkdir /etc/samba/conf.d/
vim /etc/samba/conf.d/smb1
[share]
path = /data/share2
vim /etc/samba/conf.d/smb2
[share]
path = /data/share2
mkdir /data/share2
mkdir /data/share3
touch /data/share2/share2.txt
touch /data/share3/share3.txt
客户端测试
smbclient //10.0.0.11/share -U smb1%123
可以看到是/data/share2的内容
ls
客户端测试
smbclient //10.0.0.11/share -U smb2%123
可以看到是/data/share3的内容
ls
标签:samba,进阶,share,share2,etc,conf,data From: https://www.cnblogs.com/wsxier/p/17690084.html