You are not logged in.

#1 2009-03-04 11:20:33

Cornholio
Member
Registered: 2007-09-26
Posts: 38

[solved] hal can't mount internal devices

Hi,
I've just upgraded the system and I cannot mount anymore internal drives (both ntfs and ext4)
I'm using gnome, I have set authorizations for policykit (in system --> preferences --> authorizations), and I don't get any error messages.
I have started hal with --daemon=no --verbose=yes and I get this error:

using action org.freedesktop.hal.storage.mount-fixed for uid 1000, system_bus_connection :1.97
12:20:17.302 [i] device.c:1894: Removing locks from ':1.99'
pid 5995: rc=1 signaled=0: /usr/lib/hal/hal-storage-mount
12:20:17.303 [i] hald_dbus.c:4042: No more methods in queue
12:20:17.303 [i] hald_dbus.c:4105: failed with 'org.freedesktop.Hal.Device.PermissionDeniedByPolicy' 'org.freedesktop.hal.storage.mount-fixed auth_admin_keep_always <-- (action, result)'
12:20:17.303 [i] device.c:1894: Removing locks from ':1.98'
12:20:17.413 [i] device.c:1894: Removing locks from ':1.101'
12:20:17.420 [i] ci-tracker.c:212: Removing CICallerInfo object for :1.97
12:20:17.420 [i] device.c:1894: Removing locks from ':1.97'

thanks.

Last edited by Cornholio (2009-03-04 12:37:20)

Offline

#2 2009-03-04 12:37:05

Cornholio
Member
Registered: 2007-09-26
Posts: 38

Re: [solved] hal can't mount internal devices

ok, I've added

<match action="org.freedesktop.hal.storage.*">
                       <return result="yes"/>
               </match>
               <match action="hal-storage-mount-fixed"> <!-- for internal devices mounted with extra options like a wished mount point -->
                       <return result="yes" />
               </match>

to the policykit.conf

sorry (:

Offline

#3 2009-03-16 10:35:51

cavesnow
Member
Registered: 2009-03-11
Posts: 5

Re: [solved] hal can't mount internal devices

Well actually this is not such a good solution because it actually gives unlimited permission to do that kind of thing. If I understand correctly the idea of the default

auth_admin_keep_always

option is that the system would show you an authorization (and password verification) dialog, and by entering admin password you would be granted access to what you want to do. This is usually not a bad idea since it maintains a certain level of security. The thing is I cannot find out howto setup this kind of dialog. Any ideas? links? I am currently using lxde (from my experience under ubuntu this kind of approach works since it actually displays an authetification dialog...) Maybe if I find someone who has that system installed I will try to give a look at the config files. If anyone has an ubuntu disto installed it would be great if they can see how it is setup..
Thanks

P.S. So maybe this shouldn't be labeled solved just yet.

Last edited by cavesnow (2009-03-16 10:38:15)

Offline

Board footer

Powered by FluxBB