lastlog
user1 pts/1 183.88.xx.xx Mon Apr 25 21:35:36 +0700 2011
user2 **Never logged in**
user3 **Never logged in**
last
root pts/0 10.114.xx.xx Fri Apr 8 16:08 - 16:30 (00:22)
user pts/0 10.114.xx.xx Thu Apr 7 10:48 - 11:47 (00:59)
user pts/0 10.114.xx.xx Thu Apr 7 10:43 - 10:47 (00:04)
user pts/0 10.114.xx.xx Thu Apr 7 10:22 - 10:42 (00:20)
root pts/0 10.114.xx.xx Thu Apr 7 09:43 - 10:21 (00:38)
root pts/1 10.114.xx.xx Wed Mar 30 15:49 - 15:50 (00:00)
- แถม
last -n 4 username
lastb
Refer
- http://linux.about.com/library/cmd/blcmdl8_lastlog.htm
- How to clear last log >> http://www.cyberciti.biz/faq/howto-display-clear-last-login-information/
- http://www.linuxjournal.com/article/4851
- http://www.3spoken.co.uk/2010/10/resetting-lastlog-file-in-linux.html
- http://www.experts-exchange.com/OS/Unix/Q_24205211.html
- http://www.linuxforums.org/forum/programming-scripting/142931-how-do-i-log-ssh-activity.html
No comments:
Post a Comment