Both work: last gives information on the last users to use the system (listing of login dates, users etc) lastb (if activated) gives failed login attempts lastlog simply gives a listing of _every_ user with their last login time, which I believe is what the original question asked for. Peter Wiersig wrote:
Am Freitag, 18. Januar 2002 07:20 schrieb Edward Miles:
From: Alex Levit [mailto:alex@kel-tek.com]
Can somebody enlighten me on the following subject. When a user logs in, system displays an ip or hostname from the last login. Where is this information stored?
/var/log/lastlog
Hm, I disbelieve: man last /FILES (/ is the search command for less)
: /var/log/wtmp : /var/log/btmp
This sounds correct.
Peter
-- ================================================================ Stefan Suurmeijer University of Groningen, Rekencentrum P.O. Box 800, NL-9700 AV Groningen, The Netherlands tel: (+31) 50 363 8258 - fax: (+31) 50 363 3406 E-mail: S.M.Suurmeijer@rc.rug.nl E-mail: stefan@symbolica.nl (private) ================================================================ PGP fingerprint: 183A F476 6E97 611C 061B 4425 5698 917B 2145 AA25 Quies custodiet ipsos custodes? (Who'll watch the watchmen?) #define question ((bb) || (!bb)) - William Shakespeare