*BSD News Article 11261


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1473 ; Tue, 23 Feb 93 14:43:03 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!tuegate.tue.nl!svin09.info.win.tue.nl!wzv.win.tue.nl!gvr.win.tue.nl!guido
From: guido@gvr.win.tue.nl (Guido van Rooij)
Newsgroups: comp.unix.bsd
Subject: Re: NFS server in 386bsd
Message-ID: <1loo4j$m55@wzv.win.tue.nl>
Date: 15 Feb 93 18:41:23 GMT
References: <1la8tu$gun@bigboote.WPI.EDU> <1764@dcsc.dla.mil> <g89r4222.729757886@kudu>
Organization: Eindhoven University of Technology, The Netherlands
Lines: 45
NNTP-Posting-Host: gvr

g89r4222@kudu.ru.ac.za (Geoff Rehmet) writes:


>The only problem which I still have remaining is that sometimes I
>get "permission denied" errors when accessing files in NFS
>mounted filesystems (on the client machine) - this even occurs
>when I'm logged in as root.
Wasn't root over nfs the same as nobody???

You have to modify nfs_vnops, just like ufs_vnops:

*** /sys/nfs/nfs_vnops.c~	Thu Jan 16 05:45:01 1992
--- /sys/nfs/nfs_vnops.c	Mon Feb  1 20:39:55 1993
***************
*** 255,261 ****
  found:
  		;
  	}
! 	if ((vap->va_mode & mode) != 0)
  		return (0);
  	return (EACCES);
  }
--- 255,261 ----
  found:
  		;
  	}
! 	if ((vap->va_mode & mode) == mode)
  		return (0);
  	return (EACCES);
  }

>Geoff.

>--
>==========================g89r4222@alpha.ru.ac.za============================
> Geoff Rehmet, Comp Sci Dept,    |#define DISCLAIMER These are my ramblings \
> Rhodes University, Grahamstown, |                   not the Univerisity's 
> RSA,

-Guido
-- 
Guido van Rooij                 |  Internet: guido@gvr.win.tue.nl
Bisschopsmolen 16               |  Phone:    ++31.40.461433
5612 DS Eindhoven               |  ((12+144+20)+3*sqrt(4))/7 
The Netherlands                 |    +(5*11)=9^2+0