Samba global parameters
In the new smb.conf file, set the global parameters that will allow Samba to share it shares.
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = srvr1
security = user
map to guest = bad user
dns proxy = no
First share to allow everyone access
Below the [global] parameters, add the below shares definitions that will allow everyone access to the shared directory.
[allaccess]
path = /samba/allaccess
browsable = yes
writable = yes
guest ok = yes
read only = no
The above share definition gives everyone access without prompting for passwords regardless of their group membership.
Save the file and restart Samba services and continue..
Next, run the commands below to create the allaccess folder that you shared above.
mkdir -p /samba/allaccess
chmod 777 /samba/allaccess
Then enable and start Samba services using the commands below
systemctl enable smb.service
systemctl enable nmb.service
systemctl restart smb.service
systemctl restart nmb.service