LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-01-2016, 01:30 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,576

Rep: Reputation: 179Reputation: 179
How to permit "normal" user to add printer


I have a Ubuntu workstation in the office for use by normal (non-technical) users and therefore their userID(s) do not have sudo privilege.

However, I do want to let these users add printers. When they try, the "Add" button is grayed-out, presumably waiting for the "Unlock" button to be clicked. When clicked, they get the message"Privileges are requred to change printer settings." How can I remove this restriction for printer settings? Seems rather silly to not let users configure their own printers -- what is this, Windows!?
 
Old 02-01-2016, 02:19 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Are these CUPS printers? You can grant access to the CUPS admin page in browser (URL = <hostname>:631)

Here we modified the line in /etc/cups/cupsd.conf where it had:
Code:
# Administrator user group...
SystemGroup sys root
To instead have:
Code:
# Administrator user group...
SystemGroup sys root lpadmin
We then added users to the lpadmin group. Anyone in that group can manage via the browser.
 
Old 02-01-2016, 07:46 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,576

Original Poster
Rep: Reputation: 179Reputation: 179
I don't have that in my cupsd.conf. Mine has @SYSTEM used all over, e.g.:

Code:
# All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Dev$
    AuthType Default  
    Require user @SYSTEM
    Order deny,allow  
  </Limit>
Ant idea where that is defined? I tried changing all instances of "@SYSTEM" to "users @SYSTEM", but no luck.

The app 'Unlock' button says "Dialog is locked. Click to make changes". After clicking, the entire error message is "Privileges are required to change printer settings. This should only be needed from the Printers system settings panel." So, I think I'm in initially getting this error at the Desktop (Cinnamon).

Last edited by mfoley; 02-01-2016 at 07:47 PM.
 
Old 02-03-2016, 12:16 AM   #4
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,576

Original Poster
Rep: Reputation: 179Reputation: 179
Still could use help on this.
 
Old 02-07-2016, 10:39 PM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,576

Original Poster
Rep: Reputation: 179Reputation: 179
On this particular distribution, the SystemGroup setting is in /etc/cups/cups-files.conf. It has:

SystemGroup lpadmin

I added a particular user to that group and he was then able to add printers. However, it appears that's my only choice. I tried adding additional group to this setting (different tests):

SystemGroup lpadmin users
SystemGroup lpadmin 10000

... and restarting the cups service, but these didn't work. Using 'users' did nothing to enable users in the 'users' group. Using 10000 gave me an error, "Printing service not available ..."

So, unless someone has another suggestion, I suppose my only option is to add users to the lpadmin group.
 
  


Reply

Tags
printer installation



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using "normal", vs "low-latency" vs "real-time RT" kernels GTrax Linux - Software 7 07-10-2014 04:34 AM
How secure to grant "reload" privileges to a normal user in MySql deepakdeore2004 Linux - Security 2 10-20-2010 08:42 AM
Submount, "permission denied" when writing to floppy as normal user DaneM Linux - Software 5 02-22-2006 02:05 PM
normal user want to perform "init 6" by using " sudo acbenny Linux - General 3 08-08-2004 07:41 AM
how can i add a printer that is not listed in the "Red Hat Printer Config?" kublador Linux - Newbie 2 03-05-2003 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration