home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / nfs / 1989 < prev    next >
Encoding:
Internet Message Format  |  1992-07-31  |  1.3 KB

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