Dario Lesca
2024-Feb-06 16:29 UTC
[Samba] Samba 4.19.4 as printer server: printer are not show in browser
I have install from RPM on a Fedora server samba 4.19.4 + cups + cups- pdf to allow some client windows to print and generate PDF on server in order to analyse and convert these files into another format. I have configure smb.conf in this way[1] (on standard file I have only add "[global]/map to guest = bad user" and "[printers]/browseable Yes"), but when I try to browse the server, printer cups-pdf are not show into list of printer browsable[2] an I cannot connect to it. What's is wrong on my configurations? Many thanks Dario [1] #################################### root at fedora:~# cat /etc/samba/smb.conf [global] ??????? workgroup = SAMBA ??????? security = user ??????? map to guest = bad user ??????? passdb backend = tdbsam ??????? printing = cups ??????? printcap name = cups ??????? load printers = yes ??????? cups options = raw ??????? # Install samba-usershares package for support ??????? # include = /etc/samba/usershares.conf [homes] ??????? comment = Home Directories ??????? valid users = %S, %D%w%S ??????? browseable = No ??????? read only = No ??????? inherit acls = Yes [printers] ??????? comment = All Printers ??????? path = /var/tmp ??????? printable = Yes ??????? create mask = 0600 ??????? ;browseable = No ??????? browseable = Yes [print$] ??????? comment = Printer Drivers ??????? path = /var/lib/samba/drivers ??????? write list = @printadmin root ??????? force group = @printadmin ??????? create mask = 0664 ??????? directory mask = 0775 [2] #################################### root at fedora:~# lpstat -t scheduler is running no system default destination device for Cups-PDF: cups-pdf:/ Cups-PDF accepting requests since Tue Feb? 6 11:33:15 2024 printer Cups-PDF is idle.? enabled since Tue Feb? 6 11:33:15 2024 root at fedora:~# cat /etc/printcap # This file was automatically generated by cupsd(8) from the # /etc/cups/printers.conf file.? All changes to this file # will be lost. Cups-PDF|Cups-PDF:rm=fedora:rp=Cups-PDF: root at fedora:~# smbclient -N -L localhost ??????? Sharename?????? Type????? Comment ??????? ---------?????? ----????? ------- ??????? print$????????? Disk????? Printer Drivers ??????? IPC$??????????? IPC?????? IPC Service (Samba 4.19.4) SMB1 disabled -- no workgroup available -- Dario Lesca (Inviato dal mio Linux Fedora 39 Workstation)
Dario Lesca
2024-Feb-07 11:13 UTC
[Samba] Samba 4.19.4 as printer server: printer are not show in browser
I have try many options and different debug and I don't know what to check anymore to resolve. Please, someone can help me to discover why the CUPS printer are not show in browser list in my setup? What's wrong on my configurations? Thanks in advance Dario Il giorno mar, 06/02/2024 alle 17.29 +0100, Dario Lesca via samba ha scritto:> I have install from RPM on a Fedora server samba 4.19.4 + cups + > cups- > pdf to allow some client windows to print and generate PDF on server > in > order to analyse and convert these files into another format. > > I have configure smb.conf in this way[1] (on standard file I have > only > add "[global]/map to guest = bad user" and "[printers]/browseable > Yes"), but when I try to browse the server, printer cups-pdf are not > show into list of printer browsable[2] an I cannot connect to it. > > What's is wrong on my configurations? > > Many thanks > > Dario > > [1] #################################### > > root at fedora:~# cat /etc/samba/smb.conf > [global] > ??????? workgroup = SAMBA > ??????? security = user > > ??????? map to guest = bad user > > ??????? passdb backend = tdbsam > > ??????? printing = cups > ??????? printcap name = cups > ??????? load printers = yes > ??????? cups options = raw > > ??????? # Install samba-usershares package for support > ??????? # include = /etc/samba/usershares.conf > > [homes] > ??????? comment = Home Directories > ??????? valid users = %S, %D%w%S > ??????? browseable = No > ??????? read only = No > ??????? inherit acls = Yes > > [printers] > ??????? comment = All Printers > ??????? path = /var/tmp > ??????? printable = Yes > ??????? create mask = 0600 > ??????? ;browseable = No > ??????? browseable = Yes > > [print$] > ??????? comment = Printer Drivers > ??????? path = /var/lib/samba/drivers > ??????? write list = @printadmin root > ??????? force group = @printadmin > ??????? create mask = 0664 > ??????? directory mask = 0775 > > > [2] #################################### > > > root at fedora:~# lpstat -t > scheduler is running > no system default destination > device for Cups-PDF: cups-pdf:/ > Cups-PDF accepting requests since Tue Feb? 6 11:33:15 2024 > printer Cups-PDF is idle.? enabled since Tue Feb? 6 11:33:15 2024 > > root at fedora:~# cat /etc/printcap > # This file was automatically generated by cupsd(8) from the > # /etc/cups/printers.conf file.? All changes to this file > # will be lost. > Cups-PDF|Cups-PDF:rm=fedora:rp=Cups-PDF: > > root at fedora:~# smbclient -N -L localhost > > ??????? Sharename?????? Type????? Comment > ??????? ---------?????? ----????? ------- > ??????? print$????????? Disk????? Printer Drivers > ??????? IPC$??????????? IPC?????? IPC Service (Samba 4.19.4) > SMB1 disabled -- no workgroup available > > > -- > Dario Lesca > (Inviato dal mio Linux Fedora 39 Workstation) > > > > > > >
Possibly Parallel Threads
- Samba 4.19.4 as printer server: printer are not show in browser
- Samba 4.19.4 as printer server: printer are not show in browser
- Samba 4.19.4 as printer server: printer are not show in browser
- Samba 4.19.4 as printer server: printer are not show in browser
- After update from 3.5.x to 3.6.23 all printers configured in CUPS they are no longer shared