November 2007
Beginner
642 pages
15h 43m
English
How do you keep track of who is logged in to your Poptop server?
This is easy: use the who and the last commands. who shows you who is currently logged in, and last shows a history of logins:
$ who[...] carla :0 2007-05-03 08:02 foober ppp0 2007-05-03 10:09 (1.2.3.4) arlene ppp0 2007-05-03 10:17 (2.3.4.5)$ lastfoober ppp0 1.2.3.4 Thu May 3 10:09 still logged in arlene ppp0 2.3.4.5 Thu May 3 10:17 still logged in carla :0 Thu May 3 08:02 still logged in reboot system boot 2.6.17-10-generi Thu May 3 08:02 - 10:10 (02:08) wtmp begins Tue May 1 22:31:38 2007
Don't forget grep for weeding out the extraneous entries:
$ last |grep ppp
foober ppp0 1.2.3.4 Thu May 3 10:09 still logged in
arlene ppp0 2.3.4.5 Thu May 3 10:17 still logged inman 1 who
man 1 last
Read now
Unlock full access