How do I suppress auth requests for PackageKit, just like in F12, or the NOPASSWD directive in sudo?

Matthias Clasen matthias.clasen at gmail.com
Sun Jul 4 18:46:34 PDT 2010


On Sat, Jul 3, 2010 at 9:50 AM, Nicolas Monnet <nico at altiva.fr> wrote:
> I'm on Fedora 13.
> I've spent three hours trying to achieve this. This is all very confusing. I
> just want to do something like "NOPASSWD" in sudo, that shouldn't be too
> hard to achieve but I'm at a loss.
> I tried  creating this file:
> /etc/polkit-1/localauthority.conf.d/99-my-configuration.conf:
> [Configuration]
> AdminIdentities=unix-user:0
> Action=org.freedesktop.packagekit.package-install
> ResultAny=no
> ResultInactive=no
> ResultActive=yes
> It does nothing.
> How can I debug this? I have no idea. How do I increase log levels? No
> idea.

Reading the documentation might help. In pklocalauthority(8), you'll
find the following about /etc/polkit-1/localauthority.conf.d:

   Only a single key, AdminIdentities is read.

Your other entries (Action, Result...) belong into .pkla files in
/etc/polkit-1/localauthority.

> I have other questions:
> Why does /etc/polkit-1/localauthority.conf.d contain:
> AdminIdentities=unix-group:desktop_admin_r
> ... when desktop_admin_r is NOT a unix group? Why does it lie?

The group desktop_admin_r (and desktop_user_r) is defined in the
polkit-desktop-policy package.


More information about the polkit-devel mailing list