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缓存

相关文章:

  • 2022-12-23
  • 2021-06-10
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2021-10-17
  • 2021-05-24
  • 2022-02-09
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案