How can a non-SU edit their local printer settings (delete jobs, enable printer)?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.)
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/
@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 10:08 AM.
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.
@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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.