Page 1 of 1

Samba requires CUPS

PostPosted: Sep 12th, '13, 15:51
by FiableDotBiz
Hello.

We use Mageia 3; 64 bits, inside an ethernet local network whose router reserves IP addresses for each computer according to the MAC address. Fed up with many things freezing because of NFS or/and autofs, we installed Samba server (choosing "Standalone", then "user" as security mode) and client on 2 PCs, and configured the firewall to let the other computer access to Samba. Besides the fact we cannot see the other computers' files, one of the two computers keeps complaining about CUPS in smb.log:
"[2013/09/12 21:36:25.078450, 0] printing/print_cups.c:528(cups_async_callback)
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL"
CUPS is not installed, but in the Mageia control center →Network sharing → "Share drives and directories with Windows (SMB) systems" → Printers, the list is empty. So why does Samba looks for CUPS every 30 s, and how to stop this?

Any idea?

Re: Samba requires CUPS

PostPosted: Sep 12th, '13, 16:39
by jkerr82508
By default samba attempts to share printers. Since printers can be added at any time it constantly checks for any. To stop this from happening, in /etc/samba/smb.conf comment any uncommented lines in Section 2. of the Global Settings:
Code: Select all
   # 2. Printing Options:
    # Required to load all CUPS printers
#    printcap name = cups
#    load printers = yes
    # printcap cache time, so samba will automatically load new cups printers
#    printcap cache time = 60 
    # It should not be necessary to spell out the print system type unless
    # yours is non-standard. Currently supported print systems include:
    # bsd, sysv, plp, lprng, aix, hpux, qnx, cups
#    printing = cups

Jim

Re: Samba requires CUPS

PostPosted: Sep 14th, '13, 08:57
by FiableDotBiz
Strangely enough, it doesn't work completely: Samba complains less, but still complains. Here are my /etc/smb.conf and /var/log/samba/smb.log files after I deleted the old smb.log file, and in 'Mageia control center' → "Manage system services by enabling or disabling them" → smb (tagged "running", clicked on "start" and got the message "Restarting smb (via systemctl): [OK]".