On Thu, May 30, 2013 at 10:50:37AM CEST, Ralf Mardorf 
<ralf.mard...@alice-dsl.net> said:
> On Thu, 2013-05-30 at 09:05 +0200, Erwan David wrote:
> >     Hi have following line in my /etc/fstab
> > //server/dir       /mnt/dir         cifs                       
> > defaults,user,noauto,sec=krb5        0       0
> > 
> > mounting works flawlessly, unsing the ticket obtained through pam_krb5 at 
> > login.
> > 
> > However
> > 
> > umount /mnt/it leads to :
> > 
> > umount: only root can unmount //server/dir from /mnt/dir
> > 
> > There is no point to allowing user to mount but forbiding them yo umount 
> > the directory they mounted.
> > 
> > DO someone have an idea on this problem, or should I report a bug against 
> > umount ?
> 
> You can use tools to mount and unmount as user, e.g. gvfs, something
> that I've got removed from my Linux. What's edited in fstab isn't
> mounted by the user. A regular mount and umount can only be done by
> root.

That's what the user option in fstab is for. The fact here is to allow
cifs authentication using kerberos credentials, thus the mount must be
done by the user.

And it works well, except for unmounting...


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130530085904.ga4...@rail.eu.org

Reply via email to