FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 02-27-2012, 07:43 PM
Hermann Schwarting
 
Default Bug#661527: nfs-common: Can't unmount as user if mount point is directly under /

Package: nfs-common
Version: 1:1.2.5-4
Severity: normal

Dear Maintainer,

I have a problem with NFS mounts: As a user I can't unmount them, if
they are directly below the root directory /, with the option 'user'
present.

My /etc/fstab contains two lines:

teo:/share/ /share nfs user,noauto,rw,hard,intr,rsize=32768,wsize=32768,n oatime,proto=tcp 0 0
teo:/share/ /mnt/share nfs user,noauto,rw,hard,intr,rsize=32768,wsize=32768,n oatime,proto=tcp 0 0

I can mount /share as user, but unmount it only as root:

$ mount /share
$ umount /share
umount.nfs4: /share: not found
umount.nfs4: /share: not found
$ sudo umount /share

_But_ it works for a mount point one directory level down:

$ mount /mnt/share
$ umount /mnt/share

I would expect that the mount point does not make a difference to who
is allowed to mount/unmount.


Content of /proc/mounts while /share is mounted:

teo:/share/ /share nfs4 rw,nosuid,nodev,noexec,noatime,vers=4size=32768,ws ize=32768,namlen=255,hard,proto=tcp,port=0,timeo=6 00etrans=2,sec=sys,clientaddr=192.168.1.25,minorve rsion=0,local_lock=none,addr=192.168.1.11 0 0

Content of /run/mount/utab:

SRC=teo:/share/ TARGET=/share ROOT=/ ATTRS=hard,intrsize=32768,wsize=32768,proto=tcp,ve rs=4,addr=192.168.1.11,clientaddr=192.168.1.25 OPTS=user=hermann

Permissions of all involved directories are the same:
$ ls -ld / /share /mnt/share
drwxr-xr-x 30 root root 4096 Feb 20 21:15 /
drwxr-xr-x 2 root root 4096 Feb 27 20:50 /mnt/share
drwxr-xr-x 2 root root 4096 Feb 10 21:01 /share


Thanks,
Hermann Schwarting

-- Package-specific info:
-- rpcinfo --
program vers proto port
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 57299 status
100024 1 tcp 52192 status
-- /etc/default/nfs-common --
NEED_STATD=
STATDOPTS=
NEED_IDMAPD=
NEED_GSSD=
-- /etc/idmapd.conf --
[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
[Mapping]
Nobody-User = nobody
Nobody-Group = nogroup
-- /etc/fstab --
teo:/share/ /share nfs user,noauto,rw,hard,intr,rsize=32768,wsize=32768,n oatime,proto=tcp 0 0
teo:/share/ /mnt/share nfs user,noauto,rw,hard,intr,rsize=32768,wsize=32768,n oatime,proto=tcp 0 0
-- /proc/mounts --
rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0

-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (700, 'testing'), (650, 'unstable'), (600, 'experimental'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nfs-common depends on:
ii adduser 3.113+nmu1
ii initscripts 2.88dsf-22
ii libc6 2.13-26
ii libcap2 1:2.22-1
ii libcomerr2 1.42-1
ii libdevmapper1.02.1 2:1.02.67-2
ii libevent-2.0-5 2.0.17-stable-1
ii libgssapi-krb5-2 1.10+dfsg~beta1-2
ii libgssglue1 0.3-4
ii libk5crypto3 1.10+dfsg~beta1-2
ii libkeyutils1 1.5.2-2
ii libkrb5-3 1.10+dfsg~beta1-2
ii libmount1 2.20.1-1.2
ii libnfsidmap2 0.25-1
ii libtirpc1 0.2.2-5
ii libwrap0 7.6.q-23
ii lsb-base 3.2-28.1
ii rpcbind 0.2.0-7
ii ucf 3.0025+nmu2

Versions of packages nfs-common recommends:
ii python 2.7.2-10

nfs-common suggests no packages.

-- no debconf information



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120227204327.2846.39085.reportbug@ubik.home">htt p://lists.debian.org/20120227204327.2846.39085.reportbug@ubik.home
 

Thread Tools




All times are GMT. The time now is 06:53 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org