From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 21 Apr 1998 00:06:33 -0400 From: Russ Cox rsc@plan9.bell-labs.com Subject: [9fans] u9fs CD installation Topicbox-Message-UUID: 76862e72-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19980421040633.puD2u-8wlCGmlDlDrvGc-kqaW8Jvb1VLQgC-MHbH54A@z> 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