Xref: utzoo comp.unix.i386:1304 comp.unix.questions:17822 Path: utzoo!attcan!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.i386,comp.unix.questions Subject: Re: Using "getpwent" in SYSV/386 Keywords: C getpwent Message-ID: <1989Nov19.203748.22680@virtech.uucp> Date: 19 Nov 89 20:37:48 GMT References: <785@ctdi.UUCP> Organization: Virtual Technologies Inc. Lines: 27 In article <785@ctdi.UUCP>, mikei@ctdi.UUCP (Mike Israel) writes: > I have a question regarding the use of the "C" function > "getpwent" under AT&T's Unix SYSV/386 Release 3.2. > > This particular version of Unix stores encrypted passwords > in a file called /etc/shadow. The standard /etc/password field > for the encrypted password simply contains an 'x'. Using > "getpwent" simply retrieves this 'x'. > > Is there an existing function to access the encrypted password? The set of functions used to access the shadow file are named similar to the getpwent family of functions but use an "sp" instead of the "pw". So you have a getspent(), etc. /usr/include/shadow.h has the structures used by these functions. I can't find any reference to these functions in the 386/ix, AT&T, or Bell Tech documentation sets. Since they seem to be designed to replace the getpwent functions I would assume that the functionality is the same. -- +-----------------------------------------------------------------------+ | Conor P. Cahill uunet!virtech!cpcahil 703-430-9247 ! | Virtual Technologies Inc., P. O. Box 876, Sterling, VA 22170 | +-----------------------------------------------------------------------+