Web lists-archives.com

[Samba] [4.5.12] "guest account" doesn't work




Hello,

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?

===== smb.conf

[global]
        security = USER
        map to guest = Bad User
        guest account = www-data

[myshare]
        ;/myshare is rwx for www-data
        path = /myshare
        guest ok = Yes
        read only = No

====

FWIW, it's Samba 4.5.12 running on Debian 9.4.

Thank you.



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba