[Samba] Stopping smbd from looking for cups

Robert Moskowitz rgm at htt-consult.com
Fri Sep 11 14:32:07 UTC 2015



On 09/11/2015 08:52 AM, Rowland Penny wrote:
> On 11/09/15 13:34, Robert Moskowitz wrote:
>> The wiki recommends running the AD standalone.  I read that with no 
>> shares (well maybe login scripts and profiles) or printers.
>>
>> I have noticed in /var/log/messages attempts by smbd to access cups 
>> information.  I have not loaded cups on this server.
>>
>> How do I turn off printing services?  I do not see it listed in 
>> /etc/smaba/smb.conf:
>>
>> [global]
>>     workgroup = HOME
>>     realm = HOME.HTT
>>     netbios name = HOMEBASE
>>     server role = active directory domain controller
>>     server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, 
>> winbindd, ntp_signd, kcc, dnsupdate
>>     idmap_ldb:use rfc2307 = yes
>>
>> I created this AD with the classicupgrade script.
>>
>>
>>
>
>
> Add this to smb.conf:
>
>         load printers = no
>         printing = bsd
>         printcap name = /dev/null
>         disable spoolss = yes
>
> Note: this is stolen from one of Louis's scripts :-)
>

My gobal section now has:

[global]
     workgroup = HOME
     realm = HOME.HTT
     netbios name = HOMEBASE
     server role = active directory domain controller
     server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, 
winbindd, ntp_signd, kcc, dnsupdate
     idmap_ldb:use rfc2307 = yes
     load printers = no
     printing = bsd
     printcap name = /dev/null
     disable spoolss = yes

I then do:

smbcontrol all reload-config

and in messages I get:

Sep 11 10:29:17 homebase smbd[6127]: [2015/09/11 10:29:17.156082, 0] 
../source3/printing/print_cups.c:151(cups_connect)
Sep 11 10:29:17 homebase smbd[6127]: Unable to connect to CUPS server 
localhost:631 - Transport endpoint is not connected
Sep 11 10:29:17 homebase smbd[2079]: [2015/09/11 10:29:17.158172, 0] 
../source3/printing/print_cups.c:529(cups_async_callback)
Sep 11 10:29:17 homebase smbd[2079]: failed to retrieve printer list: 
NT_STATUS_UNSUCCESSFUL

Do I need to restart sernet-samba-ad?





More information about the samba mailing list