LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2017, 04:11 PM   #1
Mill J
Member
 
Registered: Feb 2017
Location: 127.0.0.1 Sweet 127.0.0.1
Distribution: Void, LFS, Haiku, Quirky on Rpi and many others
Posts: 906
Blog Entries: 2

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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.
 
Old 02-08-2017, 04:55 PM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,542

Rep: Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624
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.
 
1 members found this post helpful.
Old 02-08-2017, 05:35 PM   #3
Mill J
Member
 
Registered: Feb 2017
Location: 127.0.0.1 Sweet 127.0.0.1
Distribution: Void, LFS, Haiku, Quirky on Rpi and many others
Posts: 906

Original Poster
Blog Entries: 2

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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?
 
Old 02-08-2017, 05:44 PM   #4
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,542

Rep: Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624
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/
 
1 members found this post helpful.
Old 02-09-2017, 11:43 AM   #5
Mill J
Member
 
Registered: Feb 2017
Location: 127.0.0.1 Sweet 127.0.0.1
Distribution: Void, LFS, Haiku, Quirky on Rpi and many others
Posts: 906

Original Poster
Blog Entries: 2

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Ok it works! Thanks
 
Old 02-09-2017, 11:51 AM   #6
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,542

Rep: Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624
Glad to have been of assistance.
 
  


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
Network printer not discovered by system-config-printer Woodsman Slackware 30 08-03-2014 08:48 PM
hp-setup and network printer or hpcups and system-config-printer ToK Linux - Software 2 03-18-2011 10:05 AM
How to set administrative permission for just one application? Deewanagan Linux - Security 1 08-10-2009 03:09 AM
system-config-printer error when configuring the printer for other language(Chinse) amit_pansuria Linux - General 4 08-04-2009 12:34 AM
system-config-printer config file(s) frenkiel Linux - Software 0 06-06-2006 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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