linux-l: Login-Abfrage
Jens Dreger
jens.dreger at physik.fu-berlin.de
So Jan 30 20:46:32 CET 2000
On Sun, Jan 30, 2000 at 07:28:45PM +0000, Mario Thaten wrote:
> Hallo liebe Liste!
>
> Kurze Frage: Wo werden die Daten des letzten Logins gespeichert,
> die ich beim Einloggen zu sehen bekomme, und wie frage ich die
> schnell für einen beliebigen Nutzer ab (ohne mich als dieser
> einzuloggen)?
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...)
Gruss,
Jens.
Mehr Informationen über die Mailingliste linux-l