From: Phil Farrell <farrell@pangea.stanford.edu>
To: George Gallen <ggallen@slackinc.com>
Subject: Re: Creating a Temporary Printer queue?
Date: 1998/03/11 [thread overview]
Message-ID: <35073ACE.3547@pangea.stanford.edu> (raw)
In-Reply-To: 01bd4d46$04f8b6e0$804600ce@ggallen.slackinc.com
George Gallen wrote:
> Why? We have 3 line printers and about 20 different forms we could print on
> It would be nice to have people (who can't see what form in what printer)
> just spool their jobs to a queue for that form. Then the person doing the
> printing
> when they load that form on whatever printer, have all jobs to that queue
> (form)
> print to that printer.
>
> Any other ideas?? anyone??
You could create a "dummy" print queue, say "form1", whose
"if:" input filter is simply a small script that calls
"lpr -Prealprinter". The effect is that jobs sent to the
dummy print queue are then forwarded on to the real print queue.
Now, you can simply stop and start the dummy queue to control
printing. No need to mess with the /dev files.
By the way, I think you want to use "lpc enable" to allow
queueing, but no printing. When ready to print, do
"lpc start"; to stop, do "lpc stop". You will still need
"sudo" or equivalent to allow non-root users to run lpc.
Or you could try manipulating the permission on the "lpc"
program itself. Make it setuid to "root", and make it
executable only by root and some group that you create, and
then put the accounts that need access into that group.
Sometimes this doesn't work because some system management
programs have an internal check to make sure that their
"real" id is root, not just their effective one. But it is
easy to try.
--
Phil Farrell, Computer Systems Manager
Stanford University School of Earth Sciences
farrell@pangea.stanford.edu
prev parent reply other threads:[~1998-03-11 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-02 5:00 Creating a Temporary Printer queue? George Gallen
1998-03-11 5:00 ` John McIntire
1998-03-11 5:00 ` George Gallen
1998-03-11 5:00 ` Phil Farrell [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox