Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2000 17:33:14 +0100
From:      David Malone <dwmalone@maths.tcd.ie>
To:        Vivek Khera <khera@kciLink.com>
Cc:        stable@freebsd.org
Subject:   Re: NFS client ignores "read-only" attribute on file
Message-ID:  <20000825173313.A54258@walton.maths.tcd.ie>
In-Reply-To: <14758.38824.440415.870831@onceler.kciLink.com>; from khera@kciLink.com on Fri, Aug 25, 2000 at 11:58:32AM -0400
References:  <14758.38824.440415.870831@onceler.kciLink.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 25, 2000 at 11:58:32AM -0400, Vivek Khera wrote:

> Example.  "kci" is a BSD/OS 4.0.1 server with all applicable patches.
> "onceler" is a FreeBSD 4.1-STABLE (current thru wednesday's version).
> The file system is served from kci to onceler.  The FreeBSD system is
> the *only* one that ignores the read-only setting.  Linux and other
> BSD/OS systems honor it as expected.

The BSD/OS server should not allow you to append to this file, so
I would say the problem is with the server. Certainly, from a
security point of view it would be the server's responsibility to
impliment this. Checking the attributes of the file before writing
in the client may even be difficult to get right in the client
'cos the server may do some sort of uid mapping.

This problem doesn't seem to occur with a FreeBSD (4.1-STABLE)
server.

	David.


Script started on Fri Aug 25 17:26:37 2000
TERM: vt320
17:26:walton 1% df .
Filesystem  1024-blocks     Used    Avail Capacity  Mounted on
u2.nfs:/u2     17773026  7401980  8949204    45%    /u2
17:26:walton 2% ls -l hello
ls: hello: No such file or directory
17:26:walton 3% touch hello
17:26:walton 4% chmod gu-w hello
17:27:walton 5% ls -l hello
-r--r--r--  1 dwmalone  system  0 Aug 25 17:26 hello
17:27:walton 6% echo blah >> hello
hello: Permission denied.
17:27:walton 7% ls -l hello
-r--r--r--  1 dwmalone  system  0 Aug 25 17:26 hello


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000825173313.A54258>