* [gentoo-user] sudo displays last login time
@ 2008-03-17 6:14 Michael Schmarck
2008-03-17 8:49 ` Alan McKinnon
0 siblings, 1 reply; 4+ messages in thread
From: Michael Schmarck @ 2008-03-17 6:14 UTC (permalink / raw
To: gentoo-user
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?
Thanks a lot,
Michael
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] sudo displays last login time
2008-03-17 6:14 [gentoo-user] sudo displays last login time Michael Schmarck
@ 2008-03-17 8:49 ` Alan McKinnon
2008-03-17 9:00 ` [gentoo-user] " Michael Schmarck
2008-03-17 23:36 ` [gentoo-user] " Iain Buchanan
0 siblings, 2 replies; 4+ messages in thread
From: Alan McKinnon @ 2008-03-17 8:49 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: sudo displays last login time
2008-03-17 8:49 ` Alan McKinnon
@ 2008-03-17 9:00 ` Michael Schmarck
2008-03-17 23:36 ` [gentoo-user] " Iain Buchanan
1 sibling, 0 replies; 4+ messages in thread
From: Michael Schmarck @ 2008-03-17 9:00 UTC (permalink / raw
To: gentoo-user
Alan McKinnon <alan.mckinnon@gmail.com> 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:
>>
>> $ 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
That's it.
Thanks a lot!
Michael
--
gentoo-user@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] sudo displays last login time
2008-03-17 8:49 ` Alan McKinnon
2008-03-17 9:00 ` [gentoo-user] " Michael Schmarck
@ 2008-03-17 23:36 ` Iain Buchanan
1 sibling, 0 replies; 4+ messages in thread
From: Iain Buchanan @ 2008-03-17 23:36 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-17 23:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-17 6:14 [gentoo-user] sudo displays last login time Michael Schmarck
2008-03-17 8:49 ` Alan McKinnon
2008-03-17 9:00 ` [gentoo-user] " Michael Schmarck
2008-03-17 23:36 ` [gentoo-user] " Iain Buchanan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox