From owner-freebsd-bugs Thu Apr 11 15:07:59 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA16739 for bugs-outgoing; Thu, 11 Apr 1996 15:07:59 -0700 (PDT) Received: from ki.net (root@ki.net [205.150.102.1]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id PAA16722 Thu, 11 Apr 1996 15:07:19 -0700 (PDT) Received: from freebsd.ki.net (root@freebsd.ki.net [205.150.102.51]) by ki.net (8.7.4/8.7.4) with ESMTP id SAA18667; Thu, 11 Apr 1996 18:07:17 -0400 (EDT) Received: from localhost (scrappy@localhost) by freebsd.ki.net (8.7.5/8.7.5) with SMTP id SAA06438; Thu, 11 Apr 1996 18:07:24 -0400 (EDT) X-Authentication-Warning: freebsd.ki.net: scrappy owned process doing -bs Date: Thu, 11 Apr 1996 18:07:22 -0400 (EDT) From: "Marc G. Fournier" To: Mike Pritchard cc: "Marc G. Fournier" , simonm@dcs.gla.ac.uk, freebsd-bugs@freefall.freebsd.org Subject: Re: kern/876 In-Reply-To: <199604112139.OAA14927@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, 11 Apr 1996, Mike Pritchard wrote: > Marc G. Fournier wrote: > > > > Synopsis: NFS allows bogus accesses to cached data > > > > State-Changed-From-To: open-closed > > State-Changed-By: scrappy > > State-Changed-When: Thu Apr 11 11:36:49 PDT 1996 > > State-Changed-Why: > > tested "how to repeat" on local -current machine and cat/more > > give "No Permission" errors, as expected > > > > Are you sure about this one? I was able to duplicate this > problem under -current not too long ago (a month or so maybe), and I don't > recall seeing too many NFS fixes go by since then. > > I'll double check this on my machine when I get a chance. > nfs mounting from my -stable machine to my -current machine, with an exports file that looks like: /home -alldirs freebsd ---[ begin ]--- freebsd# cd /home/scrappy freebsd# pwd /home/scrappy freebsd# df . Filesystem 1K-blocks Used Avail Capacity Mounted on nfs:/home 224174 114534 91706 56% /home freebsd# mkdir testdir mkdir: testdir: Permission denied ---[ end ]--- So, no permissions on that file system. ---[ begin ]--- freebsd# ls -lt CVS-routine -rw------- 1 scrappy wheel 2392 Mar 26 14:32 CVS-routine freebsd# more CVS-routine freebsd# cat CVS-routine cat: CVS-routine: Permission denied ---[ end ]--- the more command gave an error and disappeared, the cat gave a permission denied. in the original report, the originator reported, in his example, that more gave an error while cat worked on the file: As root: # more ~fred/a a: permission denied As fred: % cat a hello % As root: # cat ~fred/a hello I used the same "How-To-Repeat" that the originator used, except on an existing file. Actually, to make it exact: As scrappy: > cd > touch this-is-a-test-file > ls -lt !$ ls -lt this-is-a-test-file -rw-r--r-- 1 scrappy wheel 0 Apr 11 18:05 this-is-a-test-file > chmod 600 !$ chmod 600 this-is-a-test-file As root: freebsd# ls -lt this* -rw------- 1 scrappy wheel 0 Apr 11 18:05 this-is-a-test-file freebsd# cat this-is-a-test-file cat: this-is-a-test-file: Permission denied freebsd# more this-is-a-test-file freebsd# more this-is-a-test-file read error (press RETURN) Marc G. Fournier scrappy@ki.net Systems Administrator @ ki.net scrappy@freebsd.org