NFS umount only works with root

Hello. I mount my NFS shares with fstab entries like

xxxx.xxxx.xx:/srv/vdr /media/vdr_video nfs noauto,user,bg,soft,intr,retry=5 0 0

With openSUSE 11.2 works this fine. With openSUSE 11.4 installation (no upgrade) only NFS mount works fine. The umount command works only with root.

Regards

Thilo

I thought all fstab mounts were controlled with root privileges (as far as mounting/unmounting). Anyway, this is likely a udisks policy

With KDE, you can adjust graphically via

System Settings > Actions Policy > org.freedesktop > The udisks Project > Unmount a device mounted by a another user

Gnome has a similar graphical interface.

I change the “Active console” parameter at “Unmount a device mounted by a another user” from Administrator Auhentication to Yes. umount doesen’t work anymore. umount also doesen’t work in terminal.

I see you are an global moderator. Can you please change the thread title to “NFS umount only work with root”. I made ​​a mistake. Thanks.

Regards

Thilo

I’ve just noticed is that you’ve used /media/vdr_video as a mount-point. I think you should be using a mount-point within your ~/ directory (for user mounting/unmounting). The /media tree is root-owned, reserved for removable device mounting.

Here’s a nice NFS troubleshooting guide.

sorry, however this I do not understand. The fstab entry

<FQDN>:/srv/vdr /media/vdr_video nfs noauto,user,bg,soft,intr,retry=5 0 0

meanwhile i use so several years in such a way. Mount with normal user are ok. Only umout doesen’t work. OpenSUSE 11.2 on my Notebook mount and umount with the fstab entry and normal user works fine. Never i mount something in my userhome.

I suppose this is a bug.

Regards

Thilo

I’m guessing its a security improvement. Try creating a mount-point within your home directory (eg /home/thilo/vdr_video), then adjust fstab accordingly. See if that works ok.

thilo b wrote:
> sorry, however this I do not understand. The fstab entry
>
>> <FQDN>:/srv/vdr /media/vdr_video nfs noauto,user,bg,soft,intr,retry=5 0
>> 0
>
> meanwhile i use so several years in such a way. Mount with normal user
> are ok. Only umout doesen’t work. OpenSUSE 11.2 on my Notebook mount and
> umount with the fstab entry and normal user works fine. Never i mount
> something in my userhome.
>
> I suppose this is a bug.

try umount -v to see if it tells you anything more. Or perhaps look in
/var/log/messages

I too don’t see why umount should behave differently to mount?!!

umount -v /media/vdr_video
umount.nfs: You are not permitted to unmount /media/vdr_video
umount.nfs: You are not permitted to unmount /media/vdr_video

@ my home:

umount -v vdr_video/
umount: Nur root kann vdr.local.tb:/srv/vdr von /home/thilo/vdr_video unmounten

In the file /var/log/messages nothing recorded.

Regards

Thilo

On 2011-03-29 18:36, thilo b wrote:
>
>> umount -v /media/vdr_video
>> umount.nfs: You are not permitted to unmount /media/vdr_video
>> umount.nfs: You are not permitted to unmount /media/vdr_video
>
> @ my home:
>> umount -v vdr_video/
>> umount: Nur root kann vdr.local.tb:/srv/vdr von /home/thilo/vdr_video
>> unmounten

Hum.

Create this script - /usr/local/bin/english:

Code:

> #!/bin/sh
> LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 DICTIONARY=english KDE_LANG=en_US.UTF-8 $*

Now, repeat the commands above as “english mount etcetera”, so that we can
read it :slight_smile:

And post between code tags - advanced editor, “#”.

Include the output of the command “mount” alone, while the nfs export is
mounted.

Don’t create mount points in /home, that doesn’t make sense. However, you
should not use /media for manual mounts, the traditional place is /mnt.

One detail more: the user umounting has to be the same one as mounted the
device - else, you need the option “users” (plural) in the options.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

thilo b wrote:
>> umount -v /media/vdr_video
>> umount.nfs: You are not permitted to unmount /media/vdr_video
>> umount.nfs: You are not permitted to unmount /media/vdr_video
>
> @ my home:
>> umount -v vdr_video/
>> umount: Nur root kann vdr.local.tb:/srv/vdr von /home/thilo/vdr_video
>> unmounten
>
> In the file /var/log/messages nothing recorded.

Hmm, What permissions do /media/vdr_video and /home/thilo/vdr_video have?

As Carlos says, you must use the same user, which I guess you are, but
perhaps you can show the output from the preceding

mount -v <whatever args>

as well. Also

cat /proc/mounts

might just show something useful.

(BTW, I’m not running 11.4. Can somebody who IS running 11.4 confirm
whether or not fstab-based NFS mounts and unmounts by a non-root user
works for you?)

A quick search shows there is a bug report submitted for this.

deano ferrari wrote:
> A quick search shows there is a ‘bug report’
> (https://bugzilla.novell.com/show_bug.cgi?id=681106) submitted for this.

Well spotted!

Thilo, you should add your results to that bug report.

Hi, i have add my results but i doesn’t understood why Len Day wrote a new program to unmount anything.

Regards

Thilo