Skip site navigation (1)Skip section navigation (2)
Date:      21 Apr 2002 19:49:48 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        current@freebsd.org
Subject:   Re: PAM: plain login not print "Last login" line
Message-ID:  <xzpbscd54cj.fsf@flood.ping.uio.no>
In-Reply-To: <20020421135613.GA16268@nagual.pp.ru>
References:  <20020421135613.GA16268@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=

"Andrey A. Chernov" <ache@nagual.pp.ru> writes:
> Now I mean plain /usr/bin/login, I don't see "Last login" from it anymore, 
> it seems it is gone when login was PAMifized. Please restore it back 
> (depending on quietlog as it was before).

See attached patch.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=login.diff

==== //depot/user/des/pam/usr.bin/login/login.c#7 - /usr/src/usr.bin/login/login.c ====
--- /tmp/tmp.36820.0	Sun Apr 21 19:46:53 2002
+++ /usr/src/usr.bin/login/login.c	Sun Apr 21 19:45:59 2002
@@ -353,6 +353,8 @@
 	lc = login_getpwclass(pwd);
 
 	quietlog = login_getcapbool(lc, "hushlogin", 0);
+	if (!quietlog)
+		pam_silent = 0;
 	
 	/*
 	 * Switching needed for NFS with root access disabled.

--=-=-=--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpbscd54cj.fsf>