Set in the samba configuration file:
path = /sha (the private directory path you created - you must give the corresponding permissions)
< p> public = yes read list = username or @group name (readable)write list = username or @group name (writable)
Run command: system-config- Make relevant settings for selinux (just check it directly, it is more convenient). Finally, don’t forget to create an accessible user on the samba server: smbpasswd -a username