home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / programm / 4625 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.4 KB  |  32 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!princeton!tex.Princeton.EDU!subbarao
  3. From: subbarao@tex.Princeton.EDU (Kartik Subbarao)
  4. Subject: Re: Creating accounts in C
  5. Message-ID: <1992Sep11.013245.4092@Princeton.EDU>
  6. Sender: news@Princeton.EDU (USENET News System)
  7. Nntp-Posting-Host: tex.princeton.edu
  8. Organization: Princeton University
  9. References: <k6tny!p.rkitts@netcom.com>
  10. Date: Fri, 11 Sep 1992 01:32:45 GMT
  11. Lines: 19
  12.  
  13. In article <k6tny!p.rkitts@netcom.com> rkitts@netcom.com (Rick Kitts) writes:
  14. >
  15. > I seem to be having a problem creating accounts from within a C program
  16. >using only C function calls. I can create the information correctly (I
  17. >think), add it to /etc/passwd and /etc/shadow in a form which seems to
  18. >be rational but I am unable to login to the account. This is Esix SVR4
  19. >running on a 486 by the way. Does any one have any idea of what I could
  20. >be doing wrong or, better, have code that does this already? Any
  21. >help would be appreciated.
  22.  
  23. Why do say ``I can create the information correctly (I think)''? Why don't
  24. you just check for yourself and be sure? Compare the information you added to 
  25. the passwd files with your program to the previous entries that you manually 
  26. put there. See what the differences are, and that tells you where you screwed 
  27. up.
  28.  
  29. Oftentimes, oneself can be an infinitely faster resource than USENET.
  30.  
  31.     -Kartik
  32.