Karmic PolicyKit-1, grant access to user
Nikita Manovich
nikita.manovich at gmail.com
Wed Nov 11 07:22:56 UTC 2009
On Mon, 2009-11-09 at 21:30 -0500, Rashkae wrote:
> As I discussed earlier in my rant thread, PolicyKit has been replaced
> with PolicyKit-1, but there is now no gui to configure any of the policies.
>
> It was easy enough to find the /usr/share/polikit-1 folder and I can
> modify the entries there to change the deault policies to my heart's
> content, but I can't figure out how grant access to a specific user.
>
> For a real world example, suppose I want to give my primary user
> permission to use sound devices, whether or not I'm currently the active
> console user. (This is something I did in Jaunty so music would keep on
> playing even though I'm logging in to another system remotely on a
> second x session.)
>
> I can't even find in what file that setting is stored in the old
> policykit, let alone how to transfer it to policykit-1
>
>
Probably here (https://bugs.launchpad.net/bugs/465054 ) you can find an
answer... You can write a .pkla file:
/var/lib/polkit-1/localauthority/50-local.d/custom-actions.pkla:
[Actions for rashkae user]
Identity=unix-user:rashkae
Action=<a sound action>
ResultActive=yes
ResultAny=auth_admin
ResultInactive=yes
See "man pklocalauthority" for more details.
--
Best regards,
Nikita Manovich.
More information about the ubuntu-users
mailing list