I've got a really strange problem... I tried to set up a [print$] share
(originally in Samba 2.2.1a, now it's 2.2.3) but failed - I don't
remember the exact reason, but I think it was because the printer driver
couldn't be properly installed under Windows with the Add Printer
Wizard. Instead, one had to use an exe-File on the Driver-CD, and that
confused me or the Client or Samba.
Well, this share is just a goody, I might as well cary the driver CD to
all the clients (only about 20). So I disabled the share again by
commenting it out with hashes #.
Strangely, Samba still seems to remember that it once had these printer
drivers: When I install the printer on an NT client, it doesn't prompt
for drivers, and it doesnt download anything, just as if the server was
really an NT server who does the spooling and formatting. I even moved
the directory with the (not-working, partly installed) drivers from
/usr/local/lib/samba/printers to /usr/local/lib/samba/was_printers, and
I restarted Samba several times. In fact, I even rebooted the server:
Still the same behavior.
I thought that the driver information perhaps is associated to the
printer name and set up a second queue for the same printer, with a
different name. And, o wonder, this helped, the client was prompted for
a driver disk. I told this to my colleagues, one took the driver CD and
went to her Client and - booh, it didn't work. This one once had had the
same printer installed locally, so it has the drivers yet, but it sends
only rubbish to the printer queue, as if it expected the "NT server"
to
interpret that.
I tried to figure out wether samba thinks it has drivers, but:
~$ rpcclient sugar -U frank
INFO: Debug class all level = 3 (pid 7869 from pid 7869)
Enter Password:
session setup ok
Domain=[SECKLER] OS=[Unix] Server=[Samba 2.2.3-1 for Debian]
rpcclient $> enumprinters
flags:[0x800000]
name:[\\sugar\hplj6]
description:[sugar\\sugar\hplj6,HP LaserJet 6MP PS,HP Laserjet 6PS]
comment:[HP Laserjet 6PS]
flags:[0x800000]
name:[\\sugar\Farbnetzdrucker]
description:[sugar\\sugar\Farbnetzdrucker,HP DeskJet 970C Series,Deskjet
970C]
comment:[Deskjet 970C]
flags:[0x800000]
name:[\\sugar\Farbdrucker]
description:[sugar\\sugar\Farbdrucker,HP DeskJet 970C Series,Deskjet
970C-2]
comment:[Deskjet 970C-2]
flags:[0x800000]
name:[\\sugar\test]
description:[sugar\\sugar\test,,]
comment:[]
rpcclient $> enumdrivers
rpcclient $>
no drivers anywhere (Farbdrucker and Farbnetzdrucker are the two queues for the
same printer).
Can anybody suggest how I could go on?
Below comes my smb.conf in parts and /etc/printcap
TIA, Frank
____________________________________________
smb.conf:
[global]
domain logons = yes
[...]
domain admin group = @wsadmin root
printer admin = @wsadmin
#printing
printing=LPRNG
printcap name = /etc/printcap
load printers = yes
[netlogon]
path = /var/export/smblogon
guest ok = no
writeable = no
# [print$]
#path = /usr/local/lib/samba/printer
#browseable = yes
#read only = yes
#write list = @wsadmin,root
_________________________________________
/etc/printcap:
lp|hplj6|HP Laserjet 6PS:\
:lp=:sd=/var/spool/lpd/hplj6:rm=141.89.201.41:rp=L1:lpr_bounce:\
:sh:pw#80:pl#72:px#1440:mx#0:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
Farbnetzdrucker|dj970|Deskjet 970C:\
:lp=:sd=/var/spool/lpd/dj890:rm=141.89.202.11:rp=PS-F81AD8-P1:lpr_bounce:\
:fo=:sh:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
Farbdrucker|dj970-2|Deskjet 970C-2:\
:lp=:sd=/var/spool/lpd/dj970:rm=141.89.202.11:rp=PS-F81AD8-P1:lpr_bounce:\
:fo=:sh:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
test
:lp=141.89.202.11%9100:sd=/var/spool/lpd/test