1 |
I researched this, and solved the problem. The correct solution was |
2 |
posted at |
3 |
http://www.linuxquestions.org/questions/slackware-14/12.0-and-hal-read-this-566862/ |
4 |
|
5 |
Basically, I had to do 2 things: |
6 |
|
7 |
1. Add myself to the group plugdev in /etc/group |
8 |
2. Reload the Dbus config with /etc/init.d/dbus reload |
9 |
|
10 |
It would be a Good Thing if new local accounts could be added to group |
11 |
plugdev when they're created. |
12 |
|
13 |
On Fri, 2007-10-19 at 16:05 -0500, Lindsay Haisley wrote: |
14 |
> I'm have a 500G WD "My Book" USB hard drive which I would like to use |
15 |
> for a backup drive. Other USB drives - flash drives - automount on |
16 |
> directories in /media with names such as /media/TRAVELDRIVE, etc. I'm |
17 |
> not sure where or how these mountpoints are established and what |
18 |
> mechanism is used to automount. |
19 |
> |
20 |
> When I plug in the WD USB hard drive, I get an error dialog: |
21 |
> |
22 |
> Cannot mount volume: |
23 |
> |
24 |
> Error org.freedesktop.DBus.Error.AccessDenied |
25 |
> |
26 |
> Details |
27 |
> A security policy in place prevents this sender from sending |
28 |
> this message to this recipient, see message bus configuration |
29 |
> file (rejected message had interface |
30 |
> "org.freedesktop.Hal.Device.Volume" member "Mount" error name |
31 |
> "(unset)" destination "org.freedesktop.Hal") |
32 |
> |
33 |
> What's the meaning of this and how do I get the system to automount the |
34 |
> drive on a proper mountpoint in /media/ ?? |
35 |
> |
36 |
> This appears to be related to policies in /etc/dbus-1/system.d/hal.conf |
37 |
> which contain a number of rules, including: |
38 |
> |
39 |
> <!-- Allow anyone to invoke methods on the Manager and Device interfaces --> |
40 |
> <policy context="default"> |
41 |
> <allow send_interface="org.freedesktop.Hal.Manager"/> |
42 |
> <allow send_interface="org.freedesktop.Hal.Device"/> |
43 |
> <allow receive_interface="org.freedesktop.Hal.Manager" |
44 |
> receive_sender="org.freedesktop.Hal"/> |
45 |
> <allow receive_interface="org.freedesktop.Hal.Device" |
46 |
> receive_sender="org.freedesktop.Hal"/> |
47 |
> |
48 |
> <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/> |
49 |
> <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/> |
50 |
> <allow send_interface="org.freedesktop.Hal.Device.Volume"/> |
51 |
> <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/> |
52 |
> <allow receive_interface="org.freedesktop.Hal.Device.SystemPowerManagement" |
53 |
> receive_sender="org.freedesktop.Hal"/> |
54 |
> <allow receive_interface="org.freedesktop.Hal.Device.LaptopPanel" |
55 |
> receive_sender="org.freedesktop.Hal"/> |
56 |
> <allow receive_interface="org.freedesktop.Hal.Device.Volume" |
57 |
> receive_sender="org.freedesktop.Hal"/> |
58 |
> <allow receive_interface="org.freedesktop.Hal.Device.Volume.Crypto" |
59 |
> receive_sender="org.freedesktop.Hal"/> |
60 |
> </policy> |
61 |
> |
62 |
> <!-- Default policy for the exported interfaces --> |
63 |
> <policy context="default"> |
64 |
> <deny send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/> |
65 |
> <deny send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/> |
66 |
> <deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/> |
67 |
> <deny send_interface="org.freedesktop.Hal.Device.Volume"/> |
68 |
> <deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/> |
69 |
> </policy> |
70 |
> |
71 |
> -- |
72 |
> Lindsay Haisley | "In an open world, | PGP public key |
73 |
> FMP Computer Services | who needs Windows | available at |
74 |
> 512-259-1190 | or Gates" | http://pubkeys.fmp.com |
75 |
> http://www.fmp.com | | |
76 |
|
77 |
|
78 |
-- |
79 |
gentoo-desktop@g.o mailing list |