> I'm sure that /media/{cdrom,floppy} need to be part of another group
> (halusers or disk maybe), but right now i want to focus on getting hal
> running as root, then worry about the users.
>
> --
I didn't see the beginnng of this thread, but it looks like you are
trying to get removable drives to mount automatically using hal. I
managed to do this earlier this year. I looked at my disorganized
notes, so maybe this will help.
If you are using Gnome, have you installed gnome-mount? If not, you
will need to get it. You want gnome-eject too.
The sequence is something like this: When you insert a memory stick or
other removable device, hal tells gnome-volume-manager. GVM calls
gnome-mount to mount the drive. If gnome-mount can mount, an icon
should appear on the desktop. I'm not sure which program is responsible
for this, but I'm guessing that GVM tells Nautilus to display it.
You want to create a group for users who are allowed to mount removable
disks. I've seen plugdev mentioned in some posts, but I think storage
is used by Arch and Ubuntu. You can probably use a different name, but
storage sounds like a good standard group name.
/etc/dbus-1/system.d/hal.conf needs the following 4 lines. I think I
originally had <policy user="root"> instead of <policy group="storage">.
<policy group="storage">
<allow send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
</policy>
Gnome-mount mounts devices in /media by default. I think you can
override this in /etc/fstab if you want. Gnome-mount creates the
mountpoint in /media and removes it when the device is unmounted. It
will not mount the device if the mountpoint already exists.
If you are not using Gnome, you should be able to use pmount.
I hope this helps.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page