LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-15-2013, 09:53 AM   #1
tsaichhorn
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
Post How can a non-SU edit their local printer settings (delete jobs, enable printer)?


We have about 40 users on openSUSE 11.x who are non-technical and use a locked-down version of Gnome to do their work. They do not have access to the Terminal window and wouldn't know what to do with it if they did.

One thing they *should* be able to do is edit their local printer settings - delete erroneous jobs from the queue, re-enable their printer if it has stopped, etc. But whenever they try to do any of these things via the Gnome printer dialog, it requests an SU password. Needless to say I don't want them to have the SU password! Only a few of us in the organization know it and we are not always available. Big delays ensue over what should be trivial problems.

Is there a way to set up printing so that the local user can do this sort of thing without requiring SU privileges? I have done numerous web searches but found nothing on the topic. So I joined LQ specifically to ask this question here.

(Apologies if I should have asked this in a different forum. I am new to LQ and pretty new to Linux, so this feels like a newbie question to me.)
 
Old 02-15-2013, 12:41 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 869
Blog Entries: 2

Rep: Reputation: 216Reputation: 216Reputation: 216
Have they used "lprm" and "cancel" ?
 
Old 02-15-2013, 12:50 PM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,216

Rep: Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820Reputation: 820
The answer may be sudo. You can list individual users who are allowed to do things which normally require an administrator and specify exactly which things they are allowed to do.
http://www.sudo.ws/

You can also manage the printer by accessing CUPS through a web browser:
http://127.0.0.1:631/jobs
This normally requires the root password, but that can be changed:
https://wiki.archlinux.org/index.php/CUPS

Last edited by DavidMcCann; 02-15-2013 at 02:43 PM. Reason: Correction
 
Old 02-18-2013, 10:19 AM   #4
tsaichhorn
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
@Linosaurusroot: I presume those commands require that I give the users a terminal window, which isn't possible. They are locked into a Gnome desktop with most of the menu options removed, right-click turned off, etc.

@DavidMcann: Thanks for the Sudo suggestion, I will explore it. Regarding CUPS, most of the users do not have access to a web browser. But now that you've pointed me to that CUPS documentation page, I do see the following text which might be what I'm looking for:

GNOME CUPS interface
If using GNOME, a possibility is to manage and configure the printer by installing system-config-printer.
For system-config-printer to work as it should, running as root may be required, or alternatively set up a "normal" user to administer CUPS (if so follow steps 1-3)
1. Create group, and add a user to it
# groupadd lpadmin
# usermod -aG lpadmin <username>
2. Add "lpadmin" (without the quotes) to this line in /etc/cups/cupsd.conf
SystemGroup sys root <insert here>
3. Restart cups, log out and in again (or restart computer)
# systemctl restart cups


***
ADDED LATER
***
I tried the above suggestion but it didn't work. Since then I've also tried massively editing /etc/cups/cupsd.conf to remove required authentications but, at least so far, none of my changes have done what I most wanted, which is, to allow ordinary users to cancel jobs from their print queue without knowing the su password. It all seems extremely complicated for such a simple and straightforward goal!

Last edited by tsaichhorn; 02-18-2013 at 11:08 AM.
 
Old 02-18-2013, 09:02 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
sudo is pretty much the tool for this. It was designed to allow non-root users to run specified cmds, using their own passwd, instead of root's.

Relevant docs
http://linux.die.net/man/8/enable
http://linux.die.net/man/1/cancel-cups
http://linux.die.net/man/8/accept
http://linux.die.net/man/8/sudo
http://linux.die.net/man/5/sudoers
 
Old 02-19-2013, 10:56 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,158

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Unfortunately, adding, removing, and restarting printers is considered an adminsitrative task. One question, though: did you have the users log out and then log back in after adding them to the lpadmin group? In general, group ownership is not refreshed until the user has started a new login session.
 
Old 02-20-2013, 08:37 AM   #7
tsaichhorn
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
@btmiller: I made all the changes on my own machine and I rebooted it each time to make sure they had taken effect.

FWIW, I completely understand why adding and removing printers is an administrative function and have no need to change that. I'm more interested in letting users be able to clear their own print queue and then restart their local USB printer. The Gnome interface makes this really easy but then doesn't let them do it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Printer troubles - I can't delete my existing printer BobNutfield Slackware 1 04-15-2009 03:28 PM
jobs printer maal Linux - Newbie 3 03-05-2008 06:26 AM
Brother HL2070N network printer installed, print jobs stuck in printer que jgz Linux - Networking 0 02-14-2008 11:54 PM
LPD Printer Server forward printing jobs to local SMB printers simplyA Linux - Server 3 04-26-2007 01:25 PM
Printer? How resume Jobs if Printer Stopped: jobs stopped? Reluctant Linux - General 0 06-03-2006 02:36 PM


All times are GMT -5. The time now is 11:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration