pam stuff needs to run as root, not user, for shadow passwords

This commit is contained in:
Todd C. Miller
1998-09-18 05:29:26 +00:00
parent d257d37b5b
commit 8d906459da

View File

@@ -746,7 +746,7 @@ static void pam_attempt_auth()
int retval;
register int counter = TRIES_FOR_PASSWORD;
/* printf("PAM Authentication\n"); */
set_perms(PERM_ROOT, 0);
retval = pam_start("sudo", user_name, &conv, &pamh);
if (retval != PAM_SUCCESS) {
pam_end(pamh, retval);