You are not logged in.

#1 2009-04-24 21:27:08

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

<SOLVED> Gnome Authorization - cannot grant authorizations

I apologize if this has been addressed in one of the many threads about hal/policykit but I could not find anything that helped.
When I start Authorizations in the menu, under Explicit Authorizations I can click on grant and select my user. When I click on Grant to apply the changes, nothing happens when I click - it pops in and out with no effect.

This is my policykit.conf

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
    <match user="root">
        <return result="yes"/>
    </match>
    <define_admin_auth group="wheel"/>
</config>

My user is in groups policykit, wheel, and hal (among others, I thought those are the relevant ones).

Last edited by proxima_centauri (2009-05-08 22:31:35)


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#2 2009-04-27 15:55:11

`dannyb
Member
From: /dev/null & aka Minnesota
Registered: 2009-01-27
Posts: 34

Re: <SOLVED> Gnome Authorization - cannot grant authorizations

I am having the exact same issue! Hope this gets fixed soon I will try and do a little more research later.

Offline

#3 2009-04-27 20:20:36

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Re: <SOLVED> Gnome Authorization - cannot grant authorizations

Good to know I'm not the only one.


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#4 2009-04-30 11:06:54

app4des
Member
Registered: 2009-02-18
Posts: 39

Re: <SOLVED> Gnome Authorization - cannot grant authorizations

Yes changing settings from the Authorizations GUI doesn't seem to work, you have to edit the settings manually from the PolicyKit files.

Offline

#5 2009-05-06 09:14:07

nuciluc
Member
From: Italy
Registered: 2009-05-06
Posts: 10

Re: <SOLVED> Gnome Authorization - cannot grant authorizations

This is my first post here..because I ever found solutions in this forum!!

I had the same problem on a new arch installation.
Another pc with arch installed has not that problem.
So I found that the grant for the identifier org.freedesktop.policykit.modify-defaults was missing.
I found the command polkit-auth to set everything by shell.
I copied the same configuration of the "old" installation and by root:

polkit-auth --user luca --grant org.freedesktop.policykit.modify-defaults --constraint local --constraint active --constraint exe:/usr/bin/polkit-gnome-authorization

solved the problem, I think...and I hope!

P.S.
Sorry for my English.. I'm Italian.

Last edited by nuciluc (2009-05-06 09:31:06)

Offline

#6 2009-05-06 16:40:57

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Re: <SOLVED> Gnome Authorization - cannot grant authorizations

I copied your command (substituting my username where you had luca) and unfortunately it did not solve my problem sad.
The Grant button still pops in and out with no effect.


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

#7 2009-05-06 18:02:04

nuciluc
Member
From: Italy
Registered: 2009-05-06
Posts: 10

Re: <SOLVED> Gnome Authorization - cannot grant authorizations

If you go on org.freedesktop.policykit.modify-defaults, do you view an explicity authorizations with your name?

Anyway, you said Grant Button.
So you had to type this command as root:

polkit-auth --user luca --grant org.freedesktop.policykit.grant --constraint local --constraint active --constraint exe:/usr/bin/polkit-gnome-authorization

Hope it helps.

Offline

#8 2009-05-06 21:42:45

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: <SOLVED> Gnome Authorization - cannot grant authorizations

There's a bug in polkit-gnome-authorization that results in the Authenticate dialog not appearing when Grant... is clicked (see http://bugs.archlinux.org/task/14610).  One workaround is to edit Policykit.conf and temporarily give your user the right to do everything, e.g.:

<config version="0.1">
    <match user="root">
        <return result="yes"/>
    </match>
    <define_admin_auth group="wheel"/>
    <match user="<your_user>">
        <return result="yes"/>
    </match>
</config>

Offline

#9 2009-05-08 22:28:43

proxima_centauri
Member
From: Nova Scotia, Canada
Registered: 2008-07-17
Posts: 117
Website

Re: <SOLVED> Gnome Authorization - cannot grant authorizations

Yes, this fixed the issue azleifel
I thought I had seen and tryed a similar solution before, but I guess not.
Thank you.


Thinkpad T61p - 15.4' WSXGA TFT - 2.5Ghz Intel Core2 Duo T9300 - 2X2GB Kingston RAM - 160GB 7200RPM - NVIDIA Quadro FX 570m - Intel 4965AGN

Offline

Board footer

Powered by FluxBB