Subject: Re: NFS unmount???
To: None <current-users@netbsd.org>
From: Ignatios Souvatzis <is@beverly.kleinbus.org>
List: current-users
Date: 12/05/2000 21:43:15
On Mon, Dec 04, 2000 at 01:11:30PM +0100, Feico Dillema wrote:
> Hi,
> 
> This may be a silly question, but I am slightly confused. I NFS mount
> my homedir from a NetBSD 1.5 NFS server, on my laptop running
> NetBSD-1.5L. When I try to do an umount on this NFS mount as *root* on
> my laptop, I get a permission denied error. I find it hard to believe
> this is a feature, but I'm not sure. If it is, what triggers it (and
> can somebody explain the `why' for it?). I suspect the following may be 
> relevant to this behaviour; The NFS server for this dir has 
> -maproot=nobody:pasta in its exports file.
> 
> Any words of wisdom for me?

You did not specify the _exact_ error message.

One very cryptic mount (and I suspect, umount) message that has bitten me 
a few times occurs when your current working directory, while executing 
mount (and maybe umount?) as root, is on a NFS that is exported/mounted with
root mapped to nobody, when nobody can't execute (maybe read?) the path
to the current working directory.

The error message contains the string "realpath", pointing to the name
of the function that tries to resolve symbolic links etc. in the mount
point name.

Regards,
	-is