Date: Fri, 12 Apr 1996 13:48:10 +0100 From: Simon Marlow <simonm@dcs.gla.ac.uk> To: "Marc G. Fournier" <scrappy@ki.net> Cc: Mike Pritchard <mpp@freefall.freebsd.org>, freebsd-bugs@freefall.freebsd.org Subject: Re: kern/876 Message-ID: <199604121249.FAA00211@freefall.freebsd.org> In-Reply-To: Your message of "Thu, 11 Apr 1996 18:07:22 EDT." <Pine.BSI.3.92.960411175521.3688M-100000@freebsd.ki.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> ---[ 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 Umm, the idea is to get the file into the cache by first reading it legitimately as the owner of the file. The how-to-repeat still works for me. > in the original report, the originator reported, in his example, > that more gave an error while cat worked on the file: Yep, there seems to be some confusion here. I should have used 'cat' exclusively. > 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) You missed out the vital step: As scrappy: $ cat this-is-a-test-file $ before trying to read it as root. The root read then succeeds. Cheers, Simon -- Simon Marlow simonm@dcs.gla.ac.uk Research Assistant http://www.dcs.gla.ac.uk/~simonm/ finger for PGP public key
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604121249.FAA00211>