LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Change permission for system-config-printer on non administrative accounts (https://www.linuxquestions.org/questions/linux-software-2/change-permission-for-system-config-printer-on-non-administrative-accounts-4175599310/)

Mill J 02-08-2017 04:11 PM

Change permission for system-config-printer on non administrative accounts
 
Hi. I would like to know how to change permissions for system-config-printer so a non administrative user could use without having to unlock it before every use. I am using a suse Linux distribution. Thanks in advance.

ferrari 02-08-2017 04:55 PM

Which version of openSUSE are you using? In general you may need to adjust the relevant pokit privilege(s). Some CUPS policies...
Code:

org.opensuse.cupspkhelper.mechanism.all-edit
org.opensuse.cupspkhelper.mechanism.class-edit
org.opensuse.cupspkhelper.mechanism.devices-get
org.opensuse.cupspkhelper.mechanism.job-edit
org.opensuse.cupspkhelper.mechanism.job-not-owned-edit
org.opensuse.cupspkhelper.mechanism.printer-enable
org.opensuse.cupspkhelper.mechanism.printer-local-edit
org.opensuse.cupspkhelper.mechanism.printer-remote-edit
org.opensuse.cupspkhelper.mechanism.printer-set-default
org.opensuse.cupspkhelper.mechanism.printeraddremove
org.opensuse.cupspkhelper.mechanism.server-settings

It may be sufficient to change the 'org.opensuse.cupspkhelper.mechanism.all-edit' which by default has the following privileges configured...
Code:

# pkaction -v --action-id org.opensuse.cupspkhelper.mechanism.all-edit
org.opensuse.cupspkhelper.mechanism.all-edit:
  description:      Change printer settings
  message:          Privileges are required to change printer settings. This should only be needed from the Printers system settings panel.
  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

With openSUSE this can be done by adding the required entry in /etc/polkit-default-privs.local

For example
Code:

org.opensuse.cupspkhelper.mechanism.all-edit yes:yes:yes
Once saved, then run (as root)
Code:

/sbin/set_polkit_default_privs
Now you should be able to use 'system-config-printer' as desired. Just be aware of potential security issues.

PolKit Reference:
https://doc.opensuse.org/documentati...policykit.html

Hope this helps.

Mill J 02-08-2017 05:35 PM

Thanks I will try that when I have time.

I'm using a opensuse 13.2 base. I built my own minimal distro on suse-studio.

Also would it solve my problem if I used a web browser?

ferrari 02-08-2017 05:44 PM

For the CUPS web interface I think you need to adjust the permissions in /etc/cups/cupsd.d.conf

For example
http://kernelmastery.com/enable-regu...nters-to-cups/

Mill J 02-09-2017 11:43 AM

Ok it works! Thanks

ferrari 02-09-2017 11:51 AM

Glad to have been of assistance. :)


All times are GMT -5. The time now is 08:02 PM.