[Samba] samba server does not list shares of type Pritner
Shirish Pargaonkar
shirishpargaonkar at gmail.com
Thu Mar 29 14:07:27 MDT 2012
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
More information about the samba
mailing list