On Sun, 27 Feb 2011 13:10:37 luis jure wrote:
> on 2011-02-27 at 11:32 Paul Colquhoun wrote:
> >If it involved PolicyKit, that may be the cause.  Look in
> >/etc/PolicyKit/PolicyKit.conf and see if that is blocking your access.
> 
> mmm... i don't have this file (or the /etc/PolicyKit directory, for that
> matter). i only have the /etc/polkit-1 directory, belonging to
> sys-auth/polkit.
> 
> the PolicyKit.conf file should already be there? which package provides
> it? or can i just create it from scratch?


Hmmm.  "equery b" for  /etc/PolicyKit/PolicyKit.conf or just /etc/PolicyKit 
doesn't return any packages on my system.

I suspect that they belong to some part of KDE, as the permission errors I was 
tracking down came from the Dolphin file manager, and they could thus control 
how KDE uses the policykit framework.  They may also be leftovers from when 
KDE/Gentoo used to use policykit, and have since stopped. It's sometimes hard 
to keep up with these changes.

It's possible that I created the file and directory by hand, after finding 
instructions via Google search, such as 
https://bbs.archlinux.org/viewtopic.php?id=65070

In case you want to risk this, the full content of my file is:

#####################
<?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">

<define_admin_auth group="wheel"/>

<match user="root">
        <return result="yes"/>
</match>

<match action="org.freedesktop.hal.storage.*">
        <return result="yes" />
</match>

</config>
#####################


-- 
Reverend Paul Colquhoun, ULC.    http://andor.dropbear.id.au/~paulcol
 Before you criticize someone, you should walk a mile in their shoes.
Then, when you do, you'll be a mile away, and you'll have their shoes.

Reply via email to