Xref: utzoo comp.protocols.nfs:1727 comp.protocols.tcp-ip.ibmpc:4797 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!ames!uhccux!munnari.oz.au!brolga!lingua.cltr.uq.OZ.AU!root From: root@lingua.cltr.uq.OZ.AU (Hulk Hogan) Newsgroups: comp.protocols.nfs,comp.protocols.tcp-ip.ibmpc Subject: Wanted: newgrp(1).exe for DOS under PC-NFS. Summary: anyone have one. Keywords: chgrp, PC-NFS Message-ID: <1991Feb1.011142.10895@lingua.cltr.uq.OZ.AU> Date: 1 Feb 91 01:11:42 GMT Distribution: comp Organization: Centre for Language Teaching and Research, Uni of Queensland, AUSTRALIA. Lines: 28 Hi, Unix hosts allow user's to be members of more than one group at one time. The "primary group" is the one in the /etc/passwd file, unless a newgrp(1) is executed. PC-NFS identifies a user by keeping a uid and a single gid. What I'm after is a DOS command which would allow a PC-NFS user to change their gid to a valid group on the NFS host. Anyone have one? Situation: PC-NFS'd user accessing NFS files from a Sun host in the DOS environment. He can't access some data from his PC because PC-NFS only keeps his primary gid, and it one of his secondary gids which is the gid of the data and which allows him access when he is logged on the NFS host. Making his primary gid the same as the data is not a good solution. Anyone have a newgrp(1) command? The code doesn't sound so hard. The group is in argv[1]. It does an RPC to the PCNFSD to verify that the user is in the group, and if so, resets the gid variable to the gid. I guess it would require some mods to rpc.pcnfsd to support a getgrnam(2) call, and some clever way of finding where the PC-NFS stores the uid and gid. /\ndy -- Andrew M. Jones, Systems Programmer, Internet: andy@lingua.cltr.uq.oz.au Centre for Lang. Teaching & Research, Phone (Australia): (07) 365 6915 University of Queensland, St. Lucia, Phone (World): +61 7 365 6915 Brisbane, Qld. AUSTRALIA 4072 Fax: +61 7 365 7077 "No matter what hits the fan, it's never distributed evenly....."