Hello everybody,

polkitd-pkla 124-2ubuntu1 installed but non of my *.pkla files seem to be working?

Kind regards,

Jelle de Jong

root@workstation01:~# dpkg -l polkitd-pkla
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-====================================================
ii polkitd-pkla 124-2ubuntu1 amd64 Legacy "local authority" (.pkla) backend for polkitd


root@workstation01:~# 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
annotation: org.freedesktop.policykit.owner -> unix-user:cups-pk-helper


root@workstation01:~# pkla-check-authorization --paths='/var/lib/polkit-1/localauthority;/etc/polkit-1/localauthority' j.doe true true org.opensuse.cupspkhelper.mechanism.all-edit
yes

root@workstation01:~# ls -hal /etc/polkit-1/localauthority/90-mandatory.d
total 16K
drwxr-xr-x 2 root root    4,0K Sep 22 19:44 .
drwxr-x--- 7 root polkitd 4,0K Sep 22 19:37 ..
-rw-r--r-- 1 root root 278 Sep 22 15:07 org.freedesktop.NetworkManager.pkla
-rw-r--r-- 1 root root     194 Sep 22 19:44 org.opensuse.cupspkhelper.pkla


root@workstation01:~# cat /etc/polkit-1/localauthority/90-mandatory.d/*
[Adding or changing system-wide modify.system and modify.own NetworkManager connections]
Identity=unix-group:ipausers
Action=org.freedesktop.NetworkManager.settings.modify.system;org.freedesktop.NetworkManager.settings.modify.own
ResultAny=no
ResultInactive=no
ResultActive=yes
[Adding or changing system-wide mechanism.all-edit cupspkhelper]
Identity=unix-group:ipausers
Action=org.opensuse.cupspkhelper.mechanism.all-edit
ResultAny=no
ResultInactive=no
ResultActive=yes

root@workstation01:~# ls -hal  /var/lib/polkit-1/localauthority/50-local.d/
total 28K
drwxr-xr-x 2 root root 4,0K Sep 22 15:16 .
drwxr-xr-x 7 root root 4,0K Sep 22 19:37 ..
-rw-r--r-- 1 root root   94 Sep 22 15:16 org.blueman.rfkill.pkla
-rw-r--r-- 1 root root  367 Sep 22 15:15 org.freedesktop.login1.pkla
-rw-r--r-- 1 root root 135 Sep 22 15:16 org.freedesktop.systemtoolsbackends.pkla
-rw-r--r-- 1 root root  133 Sep 22 15:16 org.freedesktop.timedate1.pkla
-rw-r--r-- 1 root root   97 Sep 22 15:16 org.mate.cpufreqselector.pkla

root@workstation01:~# cat /var/lib/polkit-1/localauthority/50-local.d/*
[org.blueman.rfkill]
Identity=unix-user:*
Action=org.blueman.rfkill.setstate
ResultActive=yes
[multiple-sessions-inhibit-halt--hibernate-power-off-reboot-suspend]
Identity=unix-group:ipausers
Action=org.freedesktop.login1.halt-multiple-sessions;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.reboot-multiple-sessions;org.freedesktop.login1.suspend-multiple-sessions;
ResultActive=no
[org.freedesktop.systemtoolsbackends.set]
Identity=unix-group:ipausers
Action=org.freedesktop.systemtoolsbackends.set
ResultActive=yes
[org.freedesktop.timedate1.set-timezone]
Identity=unix-group:ipausers
Action=org.freedesktop.timedate1.set-timezone
ResultActive=yes
[org.mate.cpufreqselector]
Identity=unix-user:*
Action=org.mate.cpufreqselector
ResultActive=yes

Reply via email to