16 lines
410 B
C
16 lines
410 B
C
#include <stdio.h>
|
|
#include <shadow.h>
|
|
|
|
main(int argc, char **argv)
|
|
{
|
|
struct spwd *sp;
|
|
|
|
while (sp = getspent()) {
|
|
printf("name = %s, passwd = %s, last-change = %d, min = %d\n",
|
|
sp->sp_namp, sp->sp_pwdp, sp->sp_lstchg, sp->sp_min);
|
|
printf("max = %d, warn = %d, inactive = %d, expire = %d\n",
|
|
sp->sp_min, sp->sp_warn, sp->sp_inact, sp->sp_expire);
|
|
printf("flags = 0x%x\n", sp->sp_flag);
|
|
}
|
|
}
|