linux-l: Login-Abfrage

Mario Thaten mario at thaten.in-berlin.de
So Jan 30 21:27:24 CET 2000


Reply to mail by Jens Dreger of Sun, 30 Jan 2000 20:46:32 +0100:
> Hi Mario !
> 
> Ich vermute, Du meinst die Zeile der Form
>  Last login: Sun Jan 30 20:34:48 from ...
> 
> ~> strings `which login` | grep Last
> Last login: %.*s
> 
> (Aha, login ist zustaendig.)
> 
> ~> man -P'grep last' login
>  checking of mail and the printing of the last login time 
>  and message of the day).  Otherwise, if /var/log/lastlog
>  exists, the last login time is printed (and the current
>  login is recorded).
> 
> (Aha, mal /var/login/lastlog anschauen...)
> 
> ~> less /var/log/lastlog
> [muell]
> 
> (Hm, also nicht.)
> 
> ~> apropos lastlog
> lastlog (8)          - examine lastlog file
> 
> ~> lastlog
> 
> (denke, das is' was Du suchst...)
>  

Danke für Deine Mühe!
strings kannte ich noch nicht! Sonst wär ich wahrscheinlich auch
drauf gekommen :)...

Ciao, Mario
-- 
 .~.    Mario Thaten
 /V\    mario at thaten.de
/( )\   Linux 2.3.33
 ^ ^    The only law applicable in real life is Murphy's law.




Mehr Informationen über die Mailingliste linux-l