Dan Nicholson wrote: > This is a bit off the cuff, but here goes. > > 1. HAL needs to be told about a group or user that can invoke methods > besides root and at_console. Look at /etc/dbus-1/system.d/hal.conf. > There should be sufficient comments there to figure out how to add a > group policy with whatever group you want. > > 2. gnome-volume-manager needs to be configured with > --disable-multiuser. Otherwise it goes looking for the pam_console > droppings in /var/run/console/`uid -un`. > > 3. Anything you want auto-mounted can't have an entry in /etc/fstab. > HAL will ignore these for the purpose of auto-mounting. >
Gravy! It just works! Remove lines from /etc/fstab for usbstick, cdrom and dvdrom. Recompile gvm with the '--without-multiuser' switch. Without looking too hard, something similar might be good for the default configuration without pam_console or pam_foreground (need to review security precautions): groupadd -g 61 halusers cat > /etc/dbus-1/system.d/halusers.conf << "EOF" <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> <busconfig> <!-- Allow anyone in halusers group (gid 61) to utilize HAL --> <policy group="61"> <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/> <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/> <allow send_interface="org.freedesktop.Hal.Device.Volume"/> <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/> </policy> </busconfig> EOF /etc/rc.d/init.d/haldaemon restart /etc/rc.d/init.d/dbus restart Add any users to the halusers group that should use dbus/hal/gvm/automount, and then logout and log back in to test. Everything should just work magically. Now..any pointers on how to tweak the mountpoints? Maybe use volname, volname-#, and then device name as a final fallback. Maybe just device name always. I'll have to play with it a bit to see what I like, but I have no idea where to start on that. Right now, everything comes up removable volume for my usb keys, audio cd for audio cds, and volume name for dvds. :-/ -- DJ Lucas -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
