When compiled without PAM support, su(1) fails silently when the user enters a wrong password; in earlier versions, a "Sorry" message was printed, which was removed a while ago. This patch adds a new message again, which is consistent with the behaviour of passwd(1) when a user enters a wrong password. Note that since the message is the same as in passwd(1), no new strings are introduced for translation. Author: Johannes Winkelmann --- shadow-4.1.2.1.orig/src/su.c 2008-06-24 01:53:11.000000000 +0200 +++ shadow-4.1.2.1/src/su.c 2008-10-17 11:45:25.000000000 +0200 @@ -680,6 +680,7 @@ if (!amroot && pw_auth (pwent.pw_passwd, name, PW_SU, (char *) 0)) { SYSLOG ((pwent.pw_uid ? LOG_NOTICE : LOG_WARN, "Authentication failed for %s", name)); + fprintf(stderr, _("Incorrect password for %s.\n"), name); su_failure (tty); } signal (SIGQUIT, oldsig);