You are not logged in.

#1 2011-12-06 15:58:39

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

cups - sudo

Hi all,

I recently modified my system to have no root login whatsoever.  I now cannot modify my printer settings because I cannot login as root.

How can I setup cups to use sudo?

Thanks,

Walter

Offline

#2 2011-12-06 16:50:09

HeSaid
Member
From: southwest Florida USA
Registered: 2010-07-02
Posts: 53

Re: cups - sudo

edit: I removed my comment

Last edited by HeSaid (2011-12-06 16:52:53)


Registered Linux User 159445.

Offline

#3 2011-12-06 19:58:36

azleifel
Member
Registered: 2007-10-28
Posts: 486

Offline

#4 2011-12-07 13:02:22

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

Re: cups - sudo

Hi,

Thanks for your reply - I actually just found the solution as you posted it.  I already have the "SystemGroup" declaration, so I added a new printer admin group to it which include my user.


Thanks,

Walter

Offline

#5 2013-09-18 19:20:18

macracan
Member
Registered: 2013-09-18
Posts: 1

Re: cups - sudo

May or not may apply to all cups versions. I'm on 1.3.7. It took too long to figure out the hoops through which the bigwigs @ cups wanted me to jump through. I have sudo on the machine, but no root pwd. How did I add a printer? Edit /etc/cups/printers.conf file and make sure you add a matching ppd in /etc/cups/ppd/. folder. For example:

<DefaultPrinter P1>
Info
Location
DeviceURI socket://a1.b1.c1.d1
State Idle
StateTime 1369860184
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
<DefaultPrinter P2>
Info
Location
DeviceURI socket://a2.b2.c2.d2
State Idle
StateTime 1369860184
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

and have /etc/cups/ppd/P1.ppd and /etc/cups/ppd/P2.ppd setup according to your printer(s) models. Seems like the namings must match between the printer name in printers.conf and the ppd file.

Offline

#6 2013-09-18 19:56:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,354

Re: cups - sudo

Hi macracan, and welcome to Arch.  Your post is relevant, but be aware that you are responding to a two and a half year old thread.  I would not expect a response from the original participants. 

We tend to close old threads that come back to life because Linux changes so fast that new problems and old solutions often muddy the water.  As I said, your post seems okay in that regard, so I'll leave this thread open. https://wiki.archlinux.org/index.php/Fo … Bumping.22.  Your post falls under that third bullet smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2013-09-19 11:05:04

walterjwhite
Member
Registered: 2011-05-01
Posts: 207

Re: cups - sudo

Hi macracan,

Yes, that is another way to do it; however, it is nice to have the option to choose.


Walter

Offline

Board footer

Powered by FluxBB