On Thu, 2011-12-01 at 15:57 +0000, Frank Murphy wrote:
How can I get the logged in user to
check the "enabled" box for installed printers.
As sometimes it unchecks itself,
and then to go looking for a root p\w,
if root person is not there.
Not wanting to add everyone as a sudo.
Firstly, it would be a good idea to find out why the printer is getting
disabled. Perhaps there are failures printing jobs -- are they expected
failures? Is the error policy as you want it to be? Perhaps 'Abort
job' would be better than 'Stop printer' in your case.
Once you've looked at that, if you still want to allow
enabling/disabling a printer for specific groups of users, configure
polkit.
You can find out the polkit "action" you need to configure by looking at
'polkit -v'. In this case, here it is:
org.opensuse.cupspkhelper.mechanism.printer-enable:
description: Enable/Disable a printer
message: Privileges are required to enable/disable a
printer, or a class.
vendor: The openSUSE Project
vendor_url:
http://www.opensuse.org/
icon: printer
implicit any: auth_admin
implicit inactive: auth_admin
implicit active: auth_admin_keep
You might want to change the "active" policy (i.e. the behaviour for
local active sessions) to "allow" for this action.
The pklocalauthority(8) man page explains how to do this.
There is some discussion of this relating to system-config-printer,
along with an example, here:
https://fedoraproject.org/wiki/Printing/ConfigurationTool#PolicyKit_confi...
Tim.
*/