home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Hacker's Encyclopedia 1998
/
hackers_encyclopedia.iso
/
hacking
/
unix
/
unshad.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
2003-06-11
|
253 b
|
32 lines
#include <pwd.h>
main ()
{
struct passwd *p;
while(p=getpwent ())
printf("%s:%s:%d:%d:%s:%s:%s\n", p->pw_name, p->pw_passwd,
p->pw_uid, p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell);
}