[cups.general] root and lpoptions

Minatra, Pat H. pminatra at hsutx.edu
Fri Jun 12 08:40:32 PDT 2009


What I found was that the 'lpoptions -r newprinter' command does not work; however, we are able to use the 'lpoptions -x defaultqueue' does work.  The only other thing is that sometimes this gets changed by someone temporarily and others do not know it so I am wondering, other than going into the website if there is a command line way to see what the default is, either by user or by root.  I haven't found that yet.

Thank you so much and have a GREAT day!

-------------------------
"Life is but a twinkle in the eye of eternity"
"The shortest distance between a problem and a solution is the distance between your knees and the floor"
"sorrow looks back - worry looks around - faith looks up"
Regards,
Pat H. Minatra - N5GJR
(325) 670-5804 voice
(325) 670-1570 fax
Hardin-Simmons University           Datatel Colleague Support:
www.hsutx.edu                       GL, CF, HR, PE, PR, AP
PO BOX 16040                        OneCard Support:
Abilene, TX  79698                  SysAdmin, DBAdmin
-------------------------           -------------------------
The mission of Hardin-Simmons University is to be a community dedicated to providing excellence in education enlightened by Christian faith and values.
-------------------------
PRIVILEGED AND CONFIDENTIAL NOTICE: The information contained in this e-mail may be confidential and/or privileged. This e-mail is intended to be reviewed initially by only the individual named above. If the reader of this e-mail is not the intended recipient or a representative of the intended recipient, you are hereby notified that any review, dissemination or copying of this e-mail, or the information contained herein, is prohibited. If you have received this e-mail in error, notify the above sender, send the message back and then delete it.
-------------------------
Thank you for your assistance. Hardin-Simmons University; 2200 Hickory/HSU Box 16040; Abilene, TX  79698; 325.670.1000
------------------------- 


-----Original Message-----
From: cups-bounces at easysw.com [mailto:cups-bounces at easysw.com] On Behalf Of Michael R Sweet
Sent: Thursday, June 11, 2009 4:45 PM
To: Mirror of cups.general Newsgroup
Subject: Re: [cups.general] root and lpoptions

Minatra, Pat H. wrote:
> ...
> So, how do I undo these errors?  The only way I can find to do that
> now is just edit the /etc/cups/lpoptions file for that line of
> information and then restart cups.

No need to restart cups - lpoptions is entirely a client thing, so
at most you need to restart any applications that are printing
directly via libcups (or logout and login if you aren't sure).

If you just want to remove the options for the default queue, run:

     lpoptions -x defaultqueue

If you just want to remove the newprinter option, run:

     lpoptions -r newprinter

 >  I am also finding that 'default'
> printing is NOW going to 'newprinter' instead of 'defaultqueue'; I
> guess because of the 'true"?

That shouldn't be the case - the "newprinter=true" bit is treated as
an option, and we don't do mapping of queues like this.

> I am having a hard time understanding 'why' the application works
> this way and hoping someone can help me with that understanding.

We need to be able to support defaults set by an administrator.
Prior to CUPS 1.3, this wasn't possible in the server itself, so
the solution was to use root's client printing options (lpoptions)
to serve this purpose instead.

As for why "lpoptions -o foo" sets an option on the default printer,
that's just for consistency with the "lp" command (which also doesn't
require you to specify a printer name...)

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer

_______________________________________________
cups mailing list
cups at easysw.com
http://lists.easysw.com/mailman/listinfo/cups





More information about the cups mailing list