The first step is to establish a user group first.
Built again, then build a shared folder,
GroupAdd Caiwu
Useradd wan -g caiwu
Mkdir caiwu
Add users to the Samba shared list
SMBPasswd -a Wan
Below is SMB.conf is a configuration
# =====================================================================00 =============
[global]
# Workgroup = NT-DOMAIN-NAME or WORKGROUP-NAME
Change Workgroup = Workgroup
Change NetBIOS Name = WWY
# Server string is the equivalent of the nt description field
Change Server String = FRANCK's Samba Server
# This option is important for security. It allows you to rest
# Connections to Machines Which Are ON Your Local Network. The
UserName Map = / etc / samba / smbusers
Password server = none
Guest OK = YES
Gures account = ftp
DSN Proxy = NO
[homes]
Comment = Home Directories
Browseable = no
Writeable = yes
Valid users = yes
Create Mask = 0664
Directory Mask = 0775
[caiwu]
Comment = caiwu
Path = / home / samba / caiwu
Write list = wan
Writeable = yes
Printable = NO
Create Mask = 0765
[eXchange]
Comment = Exchange File Directory
Path = / home / samba / exchange
Guest OK = YES
Writeable = yes
Create Mask = 777