[Samba] Cannot Find Windows Shared Printer

gw1500 i_was_yah00ed at yahoo.com
Tue Oct 15 17:06:01 UTC 2019


On 10/15/2019 12:51 PM, Rowland penny via samba wrote:
> 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.
>>
>
>
Doh! I didn't realize you meant that literally, smb now starts. However,
I am at the same place as before with 'smbclient'. I only see the
printer when I use -Uusername%passwd, otherwise I get the
"NT_STATUS_REVISION_MISMATCH" error.

-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




More information about the samba mailing list