From owner-freebsd-current Sun Apr 21 10:49:58 2002 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 03CFB37B404 for ; Sun, 21 Apr 2002 10:49:53 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 16DF65309; Sun, 21 Apr 2002 19:49:49 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Andrey A. Chernov" Cc: current@freebsd.org Subject: Re: PAM: plain login not print "Last login" line References: <20020421135613.GA16268@nagual.pp.ru> From: Dag-Erling Smorgrav Date: 21 Apr 2002 19:49:48 +0200 In-Reply-To: <20020421135613.GA16268@nagual.pp.ru> Message-ID: Lines: 13 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-=-= "Andrey A. Chernov" 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