多用户samba实例

1、
[[email protected] ~]# mkdir /shichang
[[email protected] ~]# touch /shichang/{r,1…5}.jpg
[[email protected] ~]# ls /shichang/
1…5.jpg r.jpg
[[email protected] ~]# useradd admin
[[email protected] ~]# smbpasswd -a admin
New SMB password:
Retype new SMB password:
Added user admin.
[[email protected] ~]# pdbedit -L
martin:1001:
admin:1002:
[[email protected] ~]#
多用户samba实例

2、
vim /etc/samba/smb.conf
多用户samba实例

3、systemctl restart smb
4、
[[email protected] ~]# ls -ldh /shichang/
drwxr-xr-x. 2 root root 35 Dec 21 03:24 /shichang/
[[email protected] ~]# chown admin /shichang/
[[email protected] ~]# ls -ldh /shichang/
drwxr-xr-x. 2 admin root 35 Dec 21 03:24 /shichang/
[[email protected] ~]#

5、

多用户samba实例 清windows缓存