[Samba] [4.5.12] "guest account" doesn't work
rpenny at samba.org
Wed May 9 13:29:13 UTC 2018
On Wed, 9 May 2018 14:07:12 +0200
Gilles via samba <samba at lists.samba.org> wrote:
> Until now, I let Samba use nobody:nogroup to access shares from
> Windows with no account in Samba.
> I wanted to try the "guest account" option to tell it to use a
> specific Unix account… but it fails with "Access denied". The
> solution is to either give up on the "guest account" directive, or
> add "force user" to the share. Why is that?
The default Samba 'guest account' is 'nobody' and this seems to be
hard coded into Samba and when an unknown user connects and 'map to
guest' is set to 'Bad User', the unknown user is silently mapped to
Without checking the source, I think this would happen even if 'nobody'
tried to connect.
Means user logins with an invalid password are rejected, unless the
username does not exist, in which case it is treated as a guest login
and mapped into the guest account.
Taking the above into account, the problem with 'www-date' is that it
does exist, so it will not be allowed access.
You could try to prove this by changing 'Bad User' to 'Bad Password',
but I wouldn't leave it like this.
More information about the samba