Gentoo Archives: gentoo-user

From: Paul Colquhoun <paulcol@×××××××××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: automounting usb drives
Date: Sun, 27 Feb 2011 03:08:47
Message-Id: 201102271351.19545.paulcol@andor.dropbear.id.au
In Reply to: Re: [gentoo-user] Re: automounting usb drives by luis jure
1 On Sun, 27 Feb 2011 13:10:37 luis jure wrote:
2 > on 2011-02-27 at 11:32 Paul Colquhoun wrote:
3 > >If it involved PolicyKit, that may be the cause. Look in
4 > >/etc/PolicyKit/PolicyKit.conf and see if that is blocking your access.
5 >
6 > mmm... i don't have this file (or the /etc/PolicyKit directory, for that
7 > matter). i only have the /etc/polkit-1 directory, belonging to
8 > sys-auth/polkit.
9 >
10 > the PolicyKit.conf file should already be there? which package provides
11 > it? or can i just create it from scratch?
12
13
14 Hmmm. "equery b" for /etc/PolicyKit/PolicyKit.conf or just /etc/PolicyKit
15 doesn't return any packages on my system.
16
17 I suspect that they belong to some part of KDE, as the permission errors I was
18 tracking down came from the Dolphin file manager, and they could thus control
19 how KDE uses the policykit framework. They may also be leftovers from when
20 KDE/Gentoo used to use policykit, and have since stopped. It's sometimes hard
21 to keep up with these changes.
22
23 It's possible that I created the file and directory by hand, after finding
24 instructions via Google search, such as
25 https://bbs.archlinux.org/viewtopic.php?id=65070
26
27 In case you want to risk this, the full content of my file is:
28
29 #####################
30 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
31
32 <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
33 "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
34
35 <!-- See the manual page PolicyKit.conf(5) for file format -->
36
37 <config version="0.1">
38
39 <define_admin_auth group="wheel"/>
40
41 <match user="root">
42 <return result="yes"/>
43 </match>
44
45 <match action="org.freedesktop.hal.storage.*">
46 <return result="yes" />
47 </match>
48
49 </config>
50 #####################
51
52
53 --
54 Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
55 Before you criticize someone, you should walk a mile in their shoes.
56 Then, when you do, you'll be a mile away, and you'll have their shoes.

Replies

Subject Author
Re: [gentoo-user] Re: automounting usb drives [SOLVED] luis jure <ljc@××××××××××××.uy>