home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!wupost!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.protocols.nfs
- Subject: Re: nfs-client
- Date: 31 Jul 1992 20:45:41 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 18
- Message-ID: <15c8plINNqr1@early-bird.think.com>
- References: <26026@sophia.inria.fr>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <26026@sophia.inria.fr> Stephane.Boyera@crazy.inria.fr writes:
- >I'm writing a nfs-client driver for macintosh. When i want to access a
- >private file (read/write denied fo other) i need to fill the fields auth_unix
- >and cred_unix in the rpc packet. Which protocol will do that ? (e.g enter the
- >user name and password and get these fields)
-
- There's no one protocol that does this, you have to emulate what Unix
- normally does, by looking in /etc/passwd and /etc/group on the server.
-
- If your site is using NIS (nee YP), you may also have to contact an NIS
- server and look up the name in the passwd.byname map to get the user's
- encrypted password, uid and primary gid, and then find all the user's
- secondary groups by searching the group.byname or group.bygid map.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-