USB stick

Tom Holroyd tomh at kurage.nimh.nih.gov
Thu Feb 14 00:41:49 UTC 2008


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
--
And "he who cannot bless shall learn to curse!"- this clear teaching
dropt to me from the clear heaven; this star stands in my heaven even in
dark nights. Thus spoke Zarathustra.




More information about the fedora-list mailing list