From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,767101a988a0122f X-Google-Attributes: gidfee84,public From: Timo Felbinger Subject: Re: Using HP printers with OSF1 / Question about printers Date: 1998/05/06 Message-ID: #1/1 X-Deja-AN: 350717276 References: Content-Type: TEXT/PLAIN; charset=US-ASCII Organization: University of Potsdam Mime-Version: 1.0 Reply-To: Timo.Felbinger@quantum.physik.uni-potsdam.de Newsgroups: comp.unix.osf.osf1 Recently, two different questions were posted to this group which may have a common answer: On 5 May 1998, Antony Si Tou wrote: > In digital unix, is there any ways to allow which users can use > which printer ? I know in UNIX we can make a file "users.allow" to allow > users to use..... On 5 May 1998, Kevin Oberman wrote: > Jamie Jamison writes: > > > I have several HP printers, LaserJet 5Si/MXs, that I need to get working > > with OSF1. I have a need to directly control the trays on the printer as I > > Are these using JetDirect cards connected to the network or are they > connected directly to the Alpha? If it's JetDirect, it's harder. > > If you are using a JetDirect, filters are not supported, so you will > need another printer definition which will do the filter and then > send the output to the REAL print queue. Yes, it's kind-a ugly! ... and you will lose control of your job: it will no longer appear in the original queue, and it will be owned by whatever UID your lpd is running under, so you can no longer lprm it. You could replace the lp{r,q,rm,c,d} programs which come with digital unix by those from the package LPRng (make sure to replace _all_ those binaries or you may run into trouble). This should solve both problems: - LPRng supports ``bounce queues'', which let you do filtering, then pass the job to a different queue or remote printer. ownership will not be affected, and in lprm it doesn't seem to matter which one of several connected queues you specify to cancel a job. - LPRng supports a file /etc/lpd.perms, which lets you specify fine-grained permissions in a quite flexible syntax, like ACCEPT SERVICE=C HOST=talker.astart.com PRINTER=hpjet REMOTEUSER=root REJECT SERVICE=X NOT IP=130.191.0.0/255.255.0 Regards, Timo Felbinger (Timo.Felbinger@quantum.physik.uni-potsdam.de) Quantum Physics Group Institute of Physics University of Potsdam, Germany