On Tue, Jul 22, 2014 at 12:18:53AM +0200, Benno Schulenberg wrote: > > On Mon, Jul 21, 2014, at 23:32, Bernhard Voelker wrote: > > On 07/21/2014 11:16 PM, Benno Schulenberg wrote: > > > So how does umount determine that a device was mounted by a user > > > and thus that the user is alllowed to unmount it again? > > > > man sys-utils/mount.8 # the new one! ;-) > > :) Ah, the man page is too big! > > > user Allow an ordinary user to mount the filesystem. > > The name of the mounting user is written to mtab > > (or to the private libmount file in /run/mount on > > system without regular mtab) so that he can unmount > > the filesystem again. > > There is no /run directory on my system. So this probably means > that this mechanism requires a minimum kernel version? Or should > that be /var/run/mount? All this is userspace stuff only, if you don't have /run than it uses old obsolete /dev/.mount/utab > By the way, Karel, what are these 'helper=' and 'uhelper=' things > that are mentioned in umount.8? Shouldn't these be mentioned in > mount.8 too, and more extensively? Not sure, it's implemented for very special purpose when udisks mount a device that should be umounted again by udisks. I don't think we want to do any advertisement for this functionality. > But... how can uhelper ever > be specified when a mountpoint isn't defined in /etc/fstab? It's never specified in fstab, it's specified by udisks when it calls mount(8). Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html