Shirish Pargaonkar
2012-Mar-29 20:07 UTC
[Samba] samba server does not list shares of type Pritner
Samba server does not list/return share type of Printer. It only does Disk and IPC$. In /etc/samba/smb.conf, [global] section has load printers = yes cups options = raw printcap name = /etc/printcap #obtain list of printers automatically on SystemV ; printcap name = lpstat printing = cups There is this section. [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = yes writable = no printable = yes The directory /var/spool/samba is empty. cupsd and smbd are running. When I run either command 'net share' or smbclient -L localhost -U smbguest -N I see only IPC$ and Disk type of shares. It is as if Samba server is oblivious to the printers section. Is it possible that this Samba server was built without the capacity to use/display shares of type Printer? How would one know? rpc_api_pipe: host localhost returned 1000 bytes. srvsvc_NetShareEnumAll: struct srvsvc_NetShareEnumAll lists all shares but of type Printer. -d 10 output shows this doing parameter load printers = yes doing parameter cups options = raw doing parameter printcap name = /etc/printcap doing parameter printing = cups # 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. printc57f1ju0105|printc57f1ju0105:rm=c57f1ju0105:rp=printc57f1ju0105: # lpstat -a printc57f1ju0105 accepting requests since Thu 29 Mar 2012 09:43:19 AM EDT # smbd -V Version 3.5.4-0.83.el5 # smbd -b | grep -i cups HAVE_CUPS_CUPS_H HAVE_CUPS_LANGUAGE_H HAVE_CUPS HAVE_LIBCUPS
Chris Smith
2012-Mar-29 21:14 UTC
[Samba] samba server does not list shares of type Pritner
On Thu, Mar 29, 2012 at 4:07 PM, Shirish Pargaonkar <shirishpargaonkar at gmail.com> wrote:> ? ? ? ?printcap name = /etc/printcap > ? ? ? ?#obtain list of printers automatically on SystemV > ; ? ? ? printcap name = lpstat > ? ? ? ?printing = cupsHave you tried: printcap name = cups ? I use it with success.>From man smb.conf:===============================To use the CUPS printing interface set printcap name = cups. This should be supplemented by an addtional setting printing = cups in the [global] section. =============================== Also check with testparm that your config is what you expect. Chris
Shirish Pargaonkar
2012-Mar-29 21:58 UTC
[Samba] samba server does not list shares of type Pritner
On Thu, Mar 29, 2012 at 4:14 PM, Chris Smith <smb_77 at chrissmith.org> wrote:> On Thu, Mar 29, 2012 at 4:07 PM, Shirish Pargaonkar > <shirishpargaonkar at gmail.com> wrote: >> ? ? ? ?printcap name = /etc/printcap >> ? ? ? ?#obtain list of printers automatically on SystemV >> ; ? ? ? printcap name = lpstat >> ? ? ? ?printing = cups > > Have you tried: > > printcap name = cupsChris, yes, that works. Thanks a lot. Regards, Shirish> > ? > > I use it with success. > > From man smb.conf: > ===============================> To use the CUPS printing interface set printcap name = cups. This > should be supplemented > by an addtional setting printing = cups in the [global] section. > ===============================> > Also check with testparm that your config is what you expect. > > Chris