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