[Samba] Samba 4.19.4 as printer server: printer are not show in browser

Rowland Penny rpenny at samba.org
Thu Feb 22 10:04:17 UTC 2024


On Thu, 22 Feb 2024 10:16:43 +0100
Dario Lesca via samba <samba at lists.samba.org> wrote:

> Il giorno mer, 21/02/2024 alle 22.32 +0100, Roland via samba ha
> scritto:
> > Hello,
> > 
> > same Problem here with arch linux and samba-4.19.5-1.
> 
> As suggested from Roland here:
> https://bugzilla.redhat.com/show_bug.cgi?id=2263500
> 
> I have try to set "browseable = Yes" parameter into [printers] session
> and run "testparm -s", I get always "browseable = No" and the CUPS
> printers are not listed
> 
> Only after printing to a fake printer all CUPS printers will listing
> 
> But "browseable" parameter continues to be shown set to No.
> 
> Also on Debian the browseable parameter is always shown set to No, but
> on debian the CUPS printers are always listed
> 
> At this point, what is the meaning of the browseable parameter into
> [printers] session ?

I haven't got a printer, no real need for one, so for testing purposes
I added these lines to the bottom of a smb.conf on a DC running 4.19.4
from Debian bookworm backports:

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

[lp1]
        comment = LP1 Printer
        path = /var/tmp
        printable = Yes
        browseable = Yes
	printer name = Cups-PDF
	public = yes

When I ran 'samba-tool testparm', I got this back:

[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers

[lp1]
	comment = LP1 Printer
	guest ok = Yes
	path = /var/tmp
	printable = Yes
	printer name = Cups-PDF

As expected, all the default lines had been removed.

This is the output from smbclient:

smbclient -NL localhost
Anonymous login successful

	Sharename       Type      Comment
	---------       ----      -------
	sysvol          Disk      
	netlogon        Disk      
	print$          Disk      Printer Drivers
	lp1             Printer   LP1 Printer
	IPC$            IPC       IPC Service (Samba 4.19.4-Debian)
SMB1 disabled -- no workgroup available

Started W10 in a VM, opened explorer, no sign of the DC, back to the DC
and installed wsdd, back to W10 and there was the DC in explorer and
when I clicked on the DCs icon, it opened and there was lp1.

Rowland




More information about the samba mailing list