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

Re: regular user can't umount automount drive



On Sun, 13 Mar 2011 21:34:55 +0000
Jonathan Matthews <contact@jpluscplusm.com> wrote:

> On 11 March 2011 06:32,  <briand@aracnet.com> wrote:
> > Howdy,
> >
> > Here's the option line from the auto.media file:
> >
> > /media/thingy  -fstype=vfat,users,flush,rw,umask=0000   :/dev/ipod
> >
> > I could have sworn this was working...
> >
> > I posted a while back and found out that the "users" option had to
> > be in there.
> 
> The option specified by mount(8)'s manpage is "user", not "users". I
> don't recall if that relates to the automounter at all.
> 

it's deja vu all over again :-)

this was the issue last time, I was using "user", and since automount,
i.e. the system was mounting the filesystem I could not umount.  So I
changed the keyword to users and everything was working fine, until
now...

when you use "user" only the user who mount'ed can umount, therefore
the "user" keyword will not work for an automounted filesystem.

#$#%@%!!  The problem is that there must be an fstab entry !!  Putting
an fstab entry in allows me to umount the device.

WTF ?

Isn't this a bug ?  Since automount is invoking mount with the users
option, shouldn't I be able to umount ?

Maybe this little gem from the man page for mount is a hint:

Some of these  options  are  only  useful  when  they  appear  in  the
       /etc/fstab file.

Hey, how about discussing which options fall into that category.  It's
certainly not obvious to me that "users" should.

I think that is the problem.  Observe the flags reported when I enter
the mount command with no args:

 rw,noexec,nosuid,nodev,flush,umask=0000

Notice that users does no appear in the list although the flush and
umask settings do.

ugh.  why does everything have to be so hard...

 Brian


Reply to: