4 * a setuid helper program for machines which use shadow passwords
5 * by Nathan Bryant, March 1999
16 #include <sys/types.h>
31 if (uid != BBSUID && uid)
34 openlog("chkpwd", LOG_CONS, LOG_AUTH);
35 syslog(LOG_WARNING, "invoked by %s (uid %u); possible breakin/probe "
36 "attempt", pw != NULL ? pw->pw_name : "?", uid);
40 if (fgets(buf, sizeof buf, stdin) == NULL)
46 if (fgets(buf, sizeof buf, stdin) == NULL)
51 if (validpw(uid, buf))