9fans archive / 1998 / 04 / 78 /    prev next

From: Russ Cox rsc@pla...
Subject: [9fans] u9fs CD installation
Date: Tue, 21 Apr 1998 00:06:33 -0400

First, the moderator (Scott?) might want to look into why this
message has 2 Reply-To: lines.  You would think majordomo would
replace it instead of blindly adding its own.

> given that the Wstat documentation explicitly states that
> file ownership cannot be changed..

Anyhow, despite the documentation, both kfs and the file server
allow chown via wstat if in you've done 'kfscmd allow' or by booting
the file server in insecure mode, respectively.  (For normal operation,
the documentation is correct.)

That's how the install procedure sets up the owners correctly initially.

As for u9fs, it looks like it should work but obviously doesn't.

> I have verified that fchown is called and always succeeds,

The install procedure (/sys/lib/pcdist/src/build.c) stats the
source file and then wstats the dest file, so you should be checking the
chown call in rwstat(), not the fchown's in rcreate().

> but it is always passed the sime user.

Right.  You're looking at the create calls, which don't do the setting
of other owners.

Russ