On Mon, Aug 11, 2008 at 08:14:05AM +0200, frantisek holop wrote:
> hmm, on Mon, Aug 11, 2008 at 02:41:44AM +0000, Jacob Meuser said that
> > he's talking about not being able to unmount a filsystem, as opposed
> > to not being able to mount it. here's an example:
>
> thanks for the wonderul example, i made one too, but thought
> that the descriptive text will be more helpful :]
>
> but where's the solution? :]]
well, umount(8) points to unmount(2) which points to statfs(2),
which describes struct statfs. one of the members is uid_t f_owner,
and the comment there says, "user that mounted the filesystem".
grepping through src/sys/kern/vfs*, f_owner is used in vfs_syscalls.c,
where we find this comment:
/*
* Only root, or the user that did the original mount is
* permitted to update it.
*/
perhaps that comment should find it's way into umount(8).
--
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org