public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user]  sudo displays last login time
Date: Mon, 17 Mar 2008 10:49:19 +0200	[thread overview]
Message-ID: <200803171049.19418.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <2999844.P2AIXiCb6r@schmarck.cn>

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:
>
> $ LC_ALL=C sudo ls -1
> Last login: Mon Mar 17 07:12:40 CET 2008 from winnb000488 on pts/6
> 10001~
> [...]
>
> Would anyone have an idea, about why that's happening?

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



-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-03-17  8:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-17  6:14 [gentoo-user] sudo displays last login time Michael Schmarck
2008-03-17  8:49 ` Alan McKinnon [this message]
2008-03-17  9:00   ` [gentoo-user] " Michael Schmarck
2008-03-17 23:36   ` [gentoo-user] " Iain Buchanan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200803171049.19418.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox