-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi, i currently tried to setup a samba print server which uses cups as default printing system and for some special printers i want to use my own scripts. samba-3.0.0 is linked against libcups and printing via cups and the driver download works perfect. whe i try to specify a special printer with "printing = bsd/lprng/sysv" my own "print command" and a special "printcap" inside the service description, samba is always trying to print via cups and testparm shows the following warning: - -- Processing section "[special-printer]" Global parameter printcap name found in service section! - -- here are the minimum settings from smb.conf: - -- [global] load printers = yes printcap name = cups printing = cups [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes [special-printer] comment = special printer path = /var/spool/samba-special printing = bsd printcap name = /usr/local/etc/samba/printcap.static print command = /path/to/command public = no writable = no printable = yes - -- the samba-howto-collection describes it this way, so it's eihter an error in the howto document or in the smb.conf file processing. the definition of "printing" and "print command" is correctly handled by testparm, but is completely ignored by smbd. if i specify a "printcap name" manually in the global section, it is correctly shown by testparm, but testprns and smbd is using cups to find the printer. when i change "printing" to something other than cups testparm shows this correct, but again, testprns and smbd ignores this completely. i recompiled everything without cups support. testparm shows everything correct, ut the warning about the "printcap" inside the service is still there. i tried testprns and it ignores my gloal "printcap name" completely and defaults to /etc/printcap. the same for smbd. it's a little bit confusing. any thoughts about this?? regards Joerg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/sm5iSPOsGF+KA+MRAtjeAJ9y0mVcAz8COKZdR/MI+a9ct45zyQCeIlPJ 8CY17FXWSEt7cT8pKJXRKFY=BQcV -----END PGP SIGNATURE-----
> [Samba] printing / printcap name in samba-3.0.0 BUG > > * To: samba at sambadotorg > * Subject: [Samba] printing / printcap name in samba-3.0.0 BUG > * From: Joerg Pulz <JoergdotPulz at frm2dottumdotde> > * Date: Wed, 12 Nov 2003 18:31:12 +0100 (CET) > hi, > > i currently tried to setup a samba print server which uses cups as default > printing system and for some special printers i want to use my own > scripts. > > samba-3.0.0 is linked against libcups and printing via cups and the > driver download works perfect. > > whe i try to specify a special printer with "printing = bsd/lprng/sysv" my > own "print command" and a special "printcap" inside the service > description, samba is always trying to print via cups and > testparm shows the following warning: > - -- > Processing section "[special-printer]" > Global parameter printcap name found in service section! > - -- > > here are the minimum settings from smb.conf: > - -- > [global] > load printers = yes > printcap name = cups > printing = cups > > [printers] > comment = All Printers > path = /var/spool/samba > browseable = no > guest ok = no > writable = no > printable = yes > > [special-printer] > comment = special printer > path = /var/spool/samba-special > printing = bsd > printcap name = /usr/local/etc/samba/printcap.static > print command = /path/to/command > public = no > writable = no > printable = yes > - -- > > the samba-howto-collection describes it this way,Actually, it recommended to use "printcap = lpstat" and "printing sysv".> so it's eihter an error > in the howto document or in the smb.conf file processing. >I am responsible for that part of the HOWTO Collection, and I myself noticed last night that there is something not kosher with that part. I seem to remember that I just copied and pasted an example setup into that document's source (at the time HTML), which *definitely worked for me*. But I was using 2.2.8 and 3.0alpha24 and 3.0beta-something at the time... I'll try to investigate next week and come up with another working solution for this. Sorry, no time before that (and no environment to test it).... Sorry for having co-caused your problem. Kurt
On Thu, 2003-11-13 at 04:31, Joerg Pulz wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > hi, > > i currently tried to setup a samba print server which uses cups as default > printing system and for some special printers i want to use my own > scripts. > > samba-3.0.0 is linked against libcups and printing via cups and the > driver download works perfect. > > whe i try to specify a special printer with "printing = bsd/lprng/sysv" my > own "print command" and a special "printcap" inside the service > description, samba is always trying to print via cups and > testparm shows the following warning: > - -- > Processing section "[special-printer]" > Global parameter printcap name found in service section!Indeed. It would not make sense for the printcap to be per-share, as its purpose in life is to provide the list of printers - once you know what printer you are contacting, there is no need for the printcap.> the samba-howto-collection describes it this way, so it's eihter an error > in the howto document or in the smb.conf file processing.Where exactly?> the definition of "printing" and "print command" is correctly handled by > testparm, but is completely ignored by smbd. > if i specify a "printcap name" manually in the global section, it is > correctly shown by testparm, but testprns and smbd is using cups to find > the printer. when i change "printing" to something other than cups > testparm shows this correct, but again, testprns and smbd ignores this > completely. > > i recompiled everything without cups support. > testparm shows everything correct, ut the warning about the "printcap" > inside the service is still there. > i tried testprns and it ignores my gloal "printcap name" completely and > defaults to /etc/printcap. the same for smbd. > > it's a little bit confusing.With cups, if you set 'printing = cups' it overrides everything else. You cannot specify a printcap, or a print command. This should be better documented (file a bug). Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20031113/e71f0464/attachment.bin