On Mon, Jun 15, 2009 at 03:45:06PM +0200, Joerg Friedrich wrote: > Package: mount > Version: 2.15.1~rc1-1 > Severity: normal > > Hi! > > The umount-manpage states: > > NOTES > The syntax of external umount helpers is: > > /sbin/umount.<suffix> [-nlfvr] dir | device > > where the <suffix> is filesystem type or a value from "uhelper=" mtab > option. > > The uhelper (unprivileged umount helper) is possible to used when Ah, should be: The "uhelper=" mtab option is possible to used when ... > non-root user wants to umount a mountpoint which is not defined in the > /etc/fstab file (e.g devices mounted by HAL). > > But the uhelper is only called when the uhelper= option is present and > not based on filesystem type. A feature which would be really great mount(8) calls /sbin/umount.<suffix>, see check_special_umountprog() in umount_one(). The uhelper= is only for unprivileged users when there is not a proper entry in the /etc/fstab file. This is typical for removable media which was mounted by HAL. > because I could umount usermounted filesytems like ltspfs (www.ltsp.org, > fuse based) with umount. You need to add "user" option to your /etc/fstab. > I tried a quick hack (works for me), but I'm not sure about the correctness :-) Well, I'd like kill all current userspace specific mount options and then remove /etc/mtab from Linux. We need to maintain all information about mounted devices in /proc/self/mountinfo only. The /etc/mtab is horrible legacy... My dream is a generic mount(2) option string (e.g. "usernote=<string>") that will be ignored by Linux kernel, but always presented in /proc/self/mountinfo. This option we can use for userspace specific information rather than mtab. Miklos, any comment? Karel > > if (mc->m.mnt_opts) > uhelper = get_value(mc->m.mnt_opts, "uhelper="); > + if (!uhelper) > + uhelper = mc->m.mnt_type; > if (uhelper) { > int status = 0; > if (check_special_umountprog(arg, arg, > > > -- > Jörg Friedrich > > There are only 10 types of people: > Those who understand binary and those who don't. -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html