Date: Tue, 6 Jan 2004 01:47:24 -0800 (PST) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/su su.c Message-ID: <200401060947.i069lOnZ037283@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 2004/01/06 01:47:24 PST
FreeBSD src repository
Modified files:
usr.bin/su su.c
Log:
When root tries to su to a non-existent user, pam_authenticate() will
normally succeed (because root can su to anyone), but pam_acct_mgmt()
will most likely fail, causing su to log a confusing "pam_acct_mgmt:
error in service module" message. To avoid this, call getpwnam()
before pam_acct_mgmt().
Sponsored by: registrar.no
Revision Changes Path
1.72 +4 -4 src/usr.bin/su/su.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401060947.i069lOnZ037283>
