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 <iaindb at netspace dot net dot au>

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

Reply via email to