From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JbOtE-0005PT-Nn for garchives@archives.gentoo.org; Mon, 17 Mar 2008 23:37:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B32A8E0441; Mon, 17 Mar 2008 23:37:10 +0000 (UTC) Received: from mail.netspace.net.au (mail-out2.netspace.net.au [203.10.110.72]) by pigeon.gentoo.org (Postfix) with ESMTP id 60C3BE0441 for ; Mon, 17 Mar 2008 23:37:10 +0000 (UTC) Received: from [172.16.0.52] (ppp246-231.static.internode.on.net [203.122.246.231]) by mail.netspace.net.au (Postfix) with ESMTP id 05891704EF for ; Tue, 18 Mar 2008 10:37:06 +1100 (EST) Subject: Re: [gentoo-user] sudo displays last login time From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <200803171049.19418.alan.mckinnon@gmail.com> References: <2999844.P2AIXiCb6r@schmarck.cn> <200803171049.19418.alan.mckinnon@gmail.com> Content-Type: text/plain Date: Tue, 18 Mar 2008 09:06:53 +0930 Message-Id: <1205797013.9153.48.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: e1abcc23-bf09-402f-8a55-046b0c1fbd0e X-Archives-Hash: 7a6a28be304de27202f08fb792cae3f4 On Mon, 2008-03-17 at 10:49 +0200, Alan McKinnon wrote: > On Monday 17 March 2008, Michael Schmarck wrote: > > Hello. > > > > Since "recently" (I think since 2nd half of last week), when I use > > sudo on my ~x86, I get the last login time displayed: [snip] > It's a recent pam update. I updated mine on 11 March, and it's these > lines from files in /etc/pam.d/: > > nazgul pam.d # grep pam_lastlog * > login:session optional pam_lastlog.so > system-login:session optional pam_lastlog.so > If you want to get rid of the last login notice, just comment out those > two lines however, if you comment them out then you also don't get the lastlog message when you ssh or console log in. How do you get the old behaviour where sudo doesn't show your last login, but other login's do? thanks, -- Iain Buchanan Waiter: "Tea or coffee, gentlemen?" 1st customer: "I'll have tea." 2nd customer: "Me, too -- and be sure the glass is clean!" (Waiter exits, returns) Waiter: "Two teas. Which one asked for the clean glass?" -- gentoo-user@lists.gentoo.org mailing list