Samba guest account requires "map to guest = bad user" - why?

cracauer@

Developer
Hmmm. Tried to publish a share with guest rights on FreeBSD-current with samba 4.23.6.

Guest account is supposed to map to user nobody by default. I have nobody and su'ing to it allowed me to read the files I want to share. But the smb share was not mountable by guest when I had
Code:
[jplayer]
        path = /mnt/part2/smb
        guest ok = yes
        writeable = no
        printable = no
        browsable = yes
        public = yes
        available = yes

It also required
Code:
[global]
#       log level = 4
        map to guest = bad user

Why is that? GUEST should have been recognized as the guest user and mapped to "nobody". And even if that did not work, why would it start working with the "map to guest" option? Doesn't make sense.
 
guest account defaults to nobody
map to guest defaults to never
you need valid login with nobody+password for authentication as guest
That's why changing map to guest to any invalid user or bad password (not recommended as windows cache the login session and you need to delete it with net use * /delete to delete the IPC$ session to be able to login again with valid user/pass or restart the pc to clear the login session)
 
Back
Top