[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't umount automounted drives



On Wed, 02 Feb 2011 05:45:47 +0000
Dom <toyer@rpdom.net> wrote:

> On 02/02/11 04:28, briand@aracnet.com wrote:
> > Hello all,
> >
> > I've got udev and automount working very nicely, EXCEPT,
> > regular users can't umount the mounted device.
> >
> > the strangest thing is that I'm sure I had it working at some point
> > such that regular users COULD umount.
> >
> > The fstab has the user keyword in it.
> >
> > Strangely passing user in the automount mount options doesn't seem
> > to help.
> >
> > Any ideas ?
> >
> 
> Have you tried putting "users" instead of "user" in the fstab or 
> automount options?
> 
> This means any user can unmount the filesystem, not just the one who 
> mounted it.

you are, of course, correct.

Nothing like having egg on your face archived in the mailing list for
all time :-(

Just to be maximally confusing there is a user AND users keyword.

user   Allow an ordinary user to mount the filesystem.  The name of the
              mounting  user  is  written  to  mtab so that he can
              unmount the filesystem again.   This  option  implies
              the  options  noexec, nosuid,  and  nodev (unless
              overridden by subsequent options, as in the option line
              user,exec,dev,suid).


users  Allow  every  user  to  mount  and unmount the filesystem.  This
              option implies the options noexec,  nosuid,  and  nodev
(unless overridden   by  subsequent  options,  as  in  the  option  line
              users,exec,dev,suid).

I think I see the difference.  The problem is that when automount
mounts the file I'm not the user who did it, so the user option doesn't
work.  users however allows me to umount a filesystem I did NOT mount.

Thank you,

Brian


Reply to: