*BSD News Article 32125


Return to BSD News archive

Xref: sserve comp.os.386bsd.development:2300 comp.os.linux.development:10983
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!newsfeed.ksu.ksu.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!yeshua.marcam.com!charnel.ecst.csuchico.edu!olivea!news.hal.COM!darkstar.UCSC.EDU!cats.ucsc.edu!haynes
From: haynes@cats.ucsc.edu (James H. Haynes)
Newsgroups: comp.os.386bsd.development,comp.os.linux.development
Subject: Subtle NFS problem in BSD and Linux
Date: 15 Jun 1994 17:58:47 GMT
Organization: University of California, Santa Cruz
Lines: 33
Message-ID: <2tnfgn$4o7@darkstar.UCSC.EDU>
NNTP-Posting-Host: hobbes.ucsc.edu


SunOS 4.1.x has a mount option "grpid" which says, if you mount a disk
partition with that option, to use BSD semantics for file groups regardless
of the setgid bit on directories.  That is, if a disk partition is mounted
with the grpid option then a newly-created file anywhere in that partition
has the group ownership taken from the group owner of the containing
directory.  Without the grpid mount option the above group ownership
behavior occurs if the containing directory has the setgid bit turned on;
otherwise the group of a newly created file is the current group of the
creator.

I've found experimentally with a Sun NFS server that the grpid mount
option works as expected when the NFS client is a Sun, and not when the
client is BSD (approximately FreeBSD 0.9 plus something) or Linux
(approximately Slackware 1.1).

Specifically,  here's output from ls -lga on the server
drwxrwx---  2 haynes   cmp101-admin     512 Jun 15 10:58 ./
drwsrwx-wt  8 avg      cmp101-admin     512 Jun 14 20:51 ../
-rw-rw----  1 haynes   sources            8 Jun 15 10:22 junk.bsd
-rw-rw----  1 haynes   sources            8 Jun 15 10:22 junk.linux
-rw-rw----  1 haynes   cmp101-admin       8 Jun 15 10:22 junk.sparc

where the various junk files were created from an NFS client on the systems
indicated by the suffixes.
-- 
haynes@cats.ucsc.edu
haynes@cats.bitnet

"Ya can talk all ya wanna, but it's dif'rent than it was!"
"No it aint!  But ya gotta know the territory!"
        Meredith Willson: "The Music Man"