1 |
On Monday 17 March 2008, Michael Schmarck wrote: |
2 |
> Hello. |
3 |
> |
4 |
> Since "recently" (I think since 2nd half of last week), when I use |
5 |
> sudo on my ~x86, I get the last login time displayed: |
6 |
> |
7 |
> $ LC_ALL=C sudo ls -1 |
8 |
> Last login: Mon Mar 17 07:12:40 CET 2008 from winnb000488 on pts/6 |
9 |
> 10001~ |
10 |
> [...] |
11 |
> |
12 |
> Would anyone have an idea, about why that's happening? |
13 |
|
14 |
It's a recent pam update. I updated mine on 11 March, and it's these |
15 |
lines from files in /etc/pam.d/: |
16 |
|
17 |
nazgul pam.d # grep pam_lastlog * |
18 |
login:session optional pam_lastlog.so |
19 |
system-login:session optional pam_lastlog.so |
20 |
|
21 |
|
22 |
If you want to get rid of the last login notice, just comment out those |
23 |
two lines |
24 |
|
25 |
|
26 |
|
27 |
-- |
28 |
Alan McKinnon |
29 |
alan dot mckinnon at gmail dot com |
30 |
|
31 |
-- |
32 |
gentoo-user@l.g.o mailing list |