[Samba] Cannot Find Windows Shared Printer

Rowland penny rpenny at samba.org
Tue Oct 15 16:51:58 UTC 2019


On 15/10/2019 17:44, gw1500 via samba wrote:
> So I added:
>
> map to guest = "my username"
>
> to [global] and
>
> guest ok = Yes
>
> to [printers].
>
> Now smb will not start. I am guessing that is because there is no
> password for "my username". However, trying to set it does not work
> (perhaps because of the space in the username?):

No, it is because you have used an invalid value for the 'map to guest' 
parameter

Just add it as I said 'map to guest = bad user'

This will map any users unknown to Samba to the guest user (which is 
usually 'nobody')

Rowland


>
>> sudo smbpasswd -a "my username"
> WARNING: Ignoring invalid value '"my username"' for parameter 'map to guest'
> WARNING: Ignoring invalid value '"my username"' for parameter 'map to guest'
> Can't load /etc/samba/smb.conf - run testparm to debug it
>
>> testparm
> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
> WARNING: Ignoring invalid value '"my username"' for parameter 'map to guest'
> Load smb config files from /etc/samba/smb.conf
> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
> WARNING: Ignoring invalid value '"my username"' for parameter 'map to guest'
> Error loading services.
>




More information about the samba mailing list