*BSD News Article 11138


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1300 ; Tue, 23 Feb 93 14:34:20 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!wotan.compaq.com!moxie!hackney
From: hackney@moxie.hou.tx.us (Greg Hackney)
Subject: Re: NFS server in 386bsd
Organization: Home
References: <1la8tu$gun@bigboote.WPI.EDU> <1764@dcsc.dla.mil> <g89r4222.729757886@kudu>
Message-ID: <C2I1po.CD5@moxie.hou.tx.us>
Date: Mon, 15 Feb 1993 16:56:10 GMT
Lines: 34

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.

Yep. Try applying this one-line kernel patch.
--
Greg Hackney
hackney@moxie.hou.tx.us


*** sys.386bsd/ufs/ufs_vnops.c.orig	Tue Dec  1 10:35:43 1992
--- sys.386bsd/ufs/ufs_vnops.c	Tue Dec  1 10:35:53 1992
***************
*** 201,207 ****
  found:
  		;
  	}
! 	if ((ip->i_mode & mode) == mode)
  		return (0);
  	return (EACCES);
  }
--- 201,207 ----
  found:
  		;
  	}
! 	if ((ip->i_mode & mode) != 0)
  		return (0);
  	return (EACCES);
  }