[Samba] print command=... not longer working after update

Georg Lutz glist at gmx.net
Mon Sep 20 22:46:25 GMT 2004


Hi,

after an update from 3.0.4 to 3.0.7 Samba does not longer honor the
"print command" parameter. I use the parameter to implement a
pdf-printer.

Before the update, printing to the pdfprinter worked, after I see the
following in the logs:

---
[2004/09/20 23:00:15, 8] printing/nt_printing.c:unpack_devicemode(2368)
  with a private section of 708 bytes
lpr: unable to print file: server-error-service-unavailable
[2004/09/20 23:00:15, 3] printing/print_generic.c:print_run_command(84)
   Running the command `lpr -r -P'pdfprinter' smbprn.00000011.ljYgDh' gave 1
---


The pdfprinter-section has not changed(apart from printing=...):
---
[pdfprinter]
comment = Ausdrucken in PDF-Dateien
path = /var/spool/samba
printable = yes
print command = /usr/local/bin/pdfprinter.sh %s %u
printing = bsd
printer admin = root
guest ok = yes
---

Instead of executing the "print command" samba uses the default internal
value for "printing = bsd". Why?


Please CC for answers, I'm not subscribed.


-- 
Georg


More information about the samba mailing list