Hi all,
I have set up a printer in cups and I can see it with lpstat -a, and I can
print to it. I put what I thought was the appropriate stuff in smb.conf, and
yet no printer shows up to the NT client I'm testing with, or in smbclient
-L
output. Any ideas at all? Here is the relevant info:
### smb.conf excerpts ###
[global]
...
printing = cups
printcap name = cups
printcap cache time = 60
load printers = yes
...
[printers]
comment = All Printers
path = /data/samba/spool
browseable = yes
public = yes
guest ok = yes
writeable = no
printable = yes
printer admin = @admin
[print$]
comment = Printer Drivers Share
path = /data/samba/drivers
write list = root
printer admin = root
### Output from lpstat -a ###
oink:/usr/local/samba/lib # lpstat -a
truss_hp4050 accepting requests since Jan 01 00:00
### cups-generated printcap ###
oink:/data/samba # more /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.
truss_hp4050|truss_hp4050:rm=oink:rp=truss_hp4050:
### permissions of Samba printer spool ###
oink:/data/samba # ls -ld spool
drwxrws--- 3 root root 4096 Sep 22 14:19 spool
### Output of smbclient -L
oink:/data/samba # smbclient -L oink
Password:
Domain=[CORP1] OS=[Unix] Server=[Samba 3.0.7]
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers Share
software Disk Software for Samba computers
oldhomes Disk Novell Home Directories
DATA Disk
ENGR Disk
IPC$ IPC IPC Service (Samba 3.0.7)
ADMIN$ IPC IPC Service (Samba 3.0.7)
root Disk Home Directories
Today at 9:59am, Misty Stanley-Jones wrote:> Hi all, > > I have set up a printer in cups and I can see it with lpstat -a, and I can > print to it. I put what I thought was the appropriate stuff in smb.conf, and > yet no printer shows up to the NT client I'm testing with, or in smbclient -L > output. Any ideas at all? Here is the relevant info:Did you restart smbd after changing smb.conf? Jim C
Misty, This may be a dumb question, but was Samba built with CUPS support? Were the cups-devel libraries present on the system on which your Samba was built? - John T. --- John H Terpstra Samba-Team email: jht@samba.org> -------- Original Message -------- > Subject: [Samba] Samba / cups problem > From: "Misty Stanley-Jones" <misty@borkholder.com> > Date: Tue, September 28, 2004 7:59 am > To: samba@lists.samba.org > > Hi all, > > I have set up a printer in cups and I can see it with lpstat -a, and I can > print to it. I put what I thought was the appropriate stuff in smb.conf, and > yet no printer shows up to the NT client I'm testing with, or in smbclient -L > output. Any ideas at all? Here is the relevant info: > > ### smb.conf excerpts ### > [global] > ... > printing = cups > printcap name = cups > printcap cache time = 60 > load printers = yes > ... > > [printers] > comment = All Printers > path = /data/samba/spool > browseable = yes > public = yes > guest ok = yes > writeable = no > printable = yes > printer admin = @admin > > [print$] > comment = Printer Drivers Share > path = /data/samba/drivers > write list = root > printer admin = root > > > ### Output from lpstat -a ### > oink:/usr/local/samba/lib # lpstat -a > truss_hp4050 accepting requests since Jan 01 00:00 > > ### cups-generated printcap ### > oink:/data/samba # more /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. > truss_hp4050|truss_hp4050:rm=oink:rp=truss_hp4050: > > ### permissions of Samba printer spool ### > oink:/data/samba # ls -ld spool > drwxrws--- 3 root root 4096 Sep 22 14:19 spool > > ### Output of smbclient -L > oink:/data/samba # smbclient -L oink > Password: > Domain=[CORP1] OS=[Unix] Server=[Samba 3.0.7] > > Sharename Type Comment > --------- ---- ------- > print$ Disk Printer Drivers Share > software Disk Software for Samba computers > oldhomes Disk Novell Home Directories > DATA Disk > ENGR Disk > IPC$ IPC IPC Service (Samba 3.0.7) > ADMIN$ IPC IPC Service (Samba 3.0.7) > root Disk Home Directories > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
On Tuesday 28 September 2004 10:37, Jim Cunning wrote: r in smbclient -L output. Any ideas at all? Here is the relevant info:> > Did you restart smbd after changing smb.conf? > > Jim CTill I was blue in the face! :( I also verified (stupid but true) that smbd was indeed compiled against cups.
Here is an update to my problem. The testparm command is reporting this for
[printers]:
[printers]
comment = All Printers
path = /data/samba/spool
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r
browseable = No <-----
But the actual smb.conf has this:
[printers]
comment = All Printers
path = /data/samba/spool
print command = lpr-cups -P %p -o raw %s -r
browseable = yes <------------------------
public = yes
guest ok = yes
writeable = no
printable = yes
Yes I have restarted Samba. No I do not know what is going on. I have only
one smb.conf on my whole system. I may be crazy, but damn this is confusing.
I think this is why I am not seeing any printers.
Misty
FYI, changing "printcap name = cups" to "printcap name = /etc/printcap" did the trick. What a waste of two days! I followed the docs and they always said to use "printcap name = cups". Any ideas when / why this changed? Misty On Tuesday 28 September 2004 14:20, Misty Stanley-Jones wrote:> Here is an update to my problem. The testparm command is reporting this > for [printers]: > [printers] > comment = All Printers > path = /data/samba/spool > guest ok = Yes > printable = Yes > print command = lpr-cups -P %p -o raw %s -r > browseable = No <----- > > But the actual smb.conf has this: > [printers] > comment = All Printers > path = /data/samba/spool > print command = lpr-cups -P %p -o raw %s -r > browseable = yes <------------------------ > public = yes > guest ok = yes > writeable = no > printable = yes > > Yes I have restarted Samba. No I do not know what is going on. I have > only one smb.conf on my whole system. I may be crazy, but damn this is > confusing. I think this is why I am not seeing any printers. > > Misty