[clug] Kubuntu startup

Chris Smart clug at christophersmart.com
Fri Sep 9 19:18:59 MDT 2011


On 09/09/11 19:52, Keith Sayers wrote:

> 	I do not get a "more info" option - only OK and Cancel.
> 

Maybe that's an Ubuntu thing, or maybe it's not PolicyKit. This is what
I see if PolicyKit is asking me for a password:
https://kororaa.org/files/policykit.png

> 	But I went to the 'net for information on PolicyKit, may have understood some of 
> what I found and as a result created this file :
> 
> 10-mount-easton.pkla
> ----------------------------------
> [Mount Easton]
> Identity=unix-user:[keith]
> Action=org.freedesktop.udisks.filesystem-mount
> ResultAny=yes
> ResultInactive=yes
> ResultActive=yes

Your username shouldn't be in square brackets there, it should be:
Identity=unix-user:keith

Other than that it looks fine, so long as it's the correct PolicyKit
action. For example, it could be:
org.freedesktop.udisks.filesystem-mount-system-internal

Rather than:
org.freedesktop.udisks.filesystem-mount

That's why you need to know what you're mounting, or more accurately,
what action PolicyKit is trying to perform.

If it's not calling "org.freedesktop.udisks.filesystem-mount" then your
custom rule won't ever enter the equation, but fix your username first
and try again.

You can see all the available actions by running:
pkaction

You could try this instead, temporarily (I think it works):
Action=org.freedesktop.udisks.*

Which should match everything to do with disks and mounting. At least it
should tell you if it's PolicyKit. Then you can try and narrow it down
to the specific action.

In Fedora, PolicyKit actions are logged in:
/var/log/secure

You might need to grep to find if/where it's being logged in Ubuntu:
sudo grep -r "org.freedesktop" /var/log/

Tailing that will probably show you the action it's running, which you
can then use in your custom rule.

-c


More information about the linux mailing list