I am trying to share a folder using the GUI (nemo) or the command line like
net usershare add temp /home/administrator/tmp comment Everyone:R guest_ok=y
In both cases I get the error message
net usershare add: cannot convert name "Everyone" to a SID. The network responded incorrectly.
I found a lot of threads with similar issues, but slightly different messages, like
'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. The connection was refused.
or
'net usershare' returned error 255: net usershare add: cannot convert name "Everyone" to a SID. Invalid parameter.
and tried the solutions mentioned there but nothing seems to solve it.
My relevant section in the smb.conf is
usershare max shares = 100
usershare allow guests = yes
usershare owner only = no
username map = /etc/samba/smbusers
encrypt passwords = yes
guest ok = yes
guest account = nobody
I have a user nobody
cat /etc/passwd
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
and it has a samba password
sudo smbpasswd -a nobody
Similar commands
net usershare add temp /home/administrator/tmp bla nobody:F guest_ok=y
net usershare add temp /home/administrator/tmp bla nobody:F guest_ok=n
show the same error message.
I have some entries in /var/lib/samba/usershares, but can't remember how they got there, but the shares are not available.
One examples is
#VERSION 2
path=/home/administrator/Downloads/
comment=Everyone:R
usershare_acl=S-1-1-0:R
guest_ok=n
sharename=Downloads
Any idea what am I might be missing?