Date: Thu, 11 Apr 1996 18:07:22 -0400 (EDT) From: "Marc G. Fournier" <scrappy@ki.net> To: Mike Pritchard <mpp@freefall.freebsd.org> Cc: "Marc G. Fournier" <scrappy@freefall.freebsd.org>, simonm@dcs.gla.ac.uk, freebsd-bugs@freefall.freebsd.org Subject: Re: kern/876 Message-ID: <Pine.BSI.3.92.960411175521.3688M-100000@freebsd.ki.net> In-Reply-To: <199604112139.OAA14927@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.92.960411175521.3688M-100000>