USB stick

John Austin ja at jaa.org.uk
Thu Feb 21 15:47:57 UTC 2008


On Wed, 2008-02-13 at 19:41 -0500, Tom Holroyd wrote:
> On Tue, 2008-02-12 at 14:02 -0500, Tom Holroyd wrote:
> > On Tue, 2008-02-12 at 10:25 -0600, Mikkel L. Ellertson wrote:
> > > I believe the message is generated when HAL tries to run as a user 
> > > other then the one that "owns" the console.
> > 
> > Hmm. Hal is running as user 68 (haldaemon). hald-runner and hald-addon-
> > storage: polling /dev/sr0 (every 2 sec) are running as root.
> > 
> > Do I need to give hal some permisions somehow? I have selinux disabled.
> 
> More info.
> 
> The command that is run is gnome-mount, I can issue the command myself
> from the command line, and add -v -nt for better diagnostics.
> 
> 	/usr/bin/gnome-mount -v -nt --hal-
> udi=/org/freedesktop/Hal/devices/volume_uuid_6161_3263
> 
> I get:
> 
> gnome-mount 0.6
> ** (gnome-mount:11405): DEBUG:
> Mounting /org/freedesktop/Hal/devices/volume_uuid_6161_3263
> ** (gnome-mount:11405): DEBUG: read mount point '/media/razr' from gconf
> string key
> '/system/storage/volumes/_org_freedesktop_Hal_devices_volume_uuid_6161_3263/mount_point'
> ** (gnome-mount:11405): DEBUG: read default option 'shortname=lower'
> from gconf strlist
> key /system/storage/default_options/vfat/mount_options
> ** (gnome-mount:11405): DEBUG: read default option 'uid=' from gconf
> strlist key /system/storage/default_options/vfat/mount_options
> ** (gnome-mount:11405): DEBUG:
> Mounting /org/freedesktop/Hal/devices/volume_uuid_6161_3263 with
> mount_point='/media/razr', fstype='', num_options=2
> ** (gnome-mount:11405): DEBUG:   option='shortname=lower'
> ** (gnome-mount:11405): DEBUG:   option='uid=500'
> 
> ** (gnome-mount:11405): WARNING **: Mount failed
> for /org/freedesktop/Hal/devices/volume_uuid_6161_3263
> org.freedesktop.Hal.PermissionDenied : Permission denied: Not in active
> session
> 
> If I run this command as root, it works. I didn't initially have a mount
> point, it was defaulting to '', but adding one didn't help. Should I
> make gnome-mount set-uid-root? Should I force haldaemon to run as root
> instead of user 68? Perhaps these problems happened because I disabled
> SELinux.
> 
> Dr. Tom

Did this ever get sorted ??

Is it to do with PolicyKit ?

I had the following problem
--------------------------------------------------------------
When hot-plugging an Ext SATA disk this error occurs

org.freedesktop.hal.storage.mount-fixed auth_admin_keep_always <-- (action, result)

Suggested sol'n which works !! (Fully updated F8 15_Feb_2008)

Quick & Dirty solution:

in /etc/PolicyKit/PolicyKit.conf insert into section <config> permission
for all users to mount all disks
Code:

<match action="org.freedesktop.hal.storage.*">
    <return result="yes"/>
</match>
--------------------------------------------------------------
polkit-list-actions shows things to do with PolicyKit

and I see 

org.freedesktop.hal.device-access

which looks very similar to your error message.
so maybe adding to /etc/PolicyKit/PolicyKit.conf

<match action="org.freedesktop.hal.device-access.*">
    <return result="yes"/>
</match>

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This is pure guesswork - not knowledge !!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

John


fuerte hints_info 1008# polkit-list-actions
...
org.freedesktop.hal.storage.crypto-setup-removable
org.freedesktop.hal.storage.crypto-setup-fixed
org.freedesktop.hal.storage.eject
org.freedesktop.hal.storage.unmount-others
org.freedesktop.hal.storage.mount-removable
org.freedesktop.hal.storage.mount-fixed
...

fuerte hints_info 997# polkit-list-actions
org.freedesktop.hal.power-management.keyboard-backlight
org.freedesktop.hal.power-management.light-sensor
org.freedesktop.hal.power-management.lcd-panel
org.freedesktop.hal.power-management.cpufreq
org.freedesktop.hal.power-management.hibernate
org.freedesktop.hal.power-management.suspend
org.freedesktop.hal.power-management.set-powersave
org.freedesktop.hal.power-management.reboot-multiple-sessions
org.freedesktop.hal.power-management.reboot
org.freedesktop.hal.power-management.shutdown-multiple-sessions
org.freedesktop.hal.power-management.shutdown
org.freedesktop.hal.device-access.pda
org.freedesktop.hal.killswitch.wlan
org.freedesktop.hal.killswitch.bluetooth
org.freedesktop.hal.storage.crypto-setup-removable
org.freedesktop.hal.storage.crypto-setup-fixed
org.freedesktop.hal.storage.eject
org.freedesktop.hal.storage.unmount-others
org.freedesktop.hal.storage.mount-removable
org.freedesktop.hal.storage.mount-fixed
org.freedesktop.hal.lock
org.freedesktop.hal.device-access.ieee1394-avc
org.freedesktop.hal.device-access.ieee1394-iidc
org.freedesktop.hal.device-access.scanner
org.freedesktop.hal.device-access.camera
org.freedesktop.hal.device-access.dvb
org.freedesktop.hal.device-access.cdrom
org.freedesktop.hal.device-access.video4linux
org.freedesktop.hal.device-access.sound
org.pulseaudio.acquire-high-priority
org.pulseaudio.acquire-real-time
fuerte hints_info 998#     





More information about the fedora-list mailing list