fogary
thank you fogary, I just tried to indicate
Create a directory for usershares:
# mkdir /var/lib/samba/usershares
Create a user group:
# groupadd -r sambashare
Change the owner of the directory to root and the group to sambashare:
# chown root:sambashare /var/lib/samba/usershares
Change the permissions of the usershares directory so that users in the group sambashare can create files. This command also sets sticky bit, which is important to prevent users from deleting usershares of other users:
# chmod 1770 /var/lib/samba/usershares
Set the following parameters in the smb.conf configuration file:
/etc/samba/smb.conf
[global]
usershare path = /var/lib/samba/usershares
usershare max shares = 100
usershare allow guests = yes
usershare owner only = yes
Add the user to the sambashare group. Replace your_username with the name of your user:
gpasswd sambashare -a your_username
Restart smb.service and nmb.service services.
No change I still have this mistake
I go around in circles and don’t know where I am...
How do I think about how to solve this problem?