Missing /var/log/lastlog
Posted by Planet Malaysia on November 5, 2009
The /var/log/lastlog file is a lastlog logging file which save all the last user login logs.
planetmy:~ # rpm -qf /usr/bin/lastlog
pwdutils-3.x.x.x-xx.xx
The Linux lastlog command use to prints the contents of the last login log. The login-name, port, and last login time will be printed.
For an example:
kajarona pts/137 140.171.171.73 Tue Oct 13 14:31:55 +0200 2009
aszg pts/82 140.171.171.11 Wed Nov 4 07:14:24 +0100 2009
ciakp pts/111 140.171.171.11 Tue Nov 3 07:44:41 +0100 2009
tkaj pts/68 140.171.171.64 Tue Nov 3 12:32:05 +0100 2009
ragab pts/108 149.223.30.18 Wed Nov 4 12:55:46 +0100 2009
aqelsp **Never logged in**
qrsnid pts/169 149.223.30.22 Thu Nov 5 08:52:10 +0100 2009
qqacharaj **Never logged in**
poygies pts/187 140.171.171.17 Thu Nov 5 09:50:33 +0100 2009
bojakt pts/11 140.171.171.101 Wed Nov 4 15:03:47 +0100 2009
chomata pts/182 149.223.20.86 Thu Nov 5 10:16:33 +0100 2009
For some reason, my Linux server show me an error message as below:
planetmy:/var/log # lastlog
/var/log/lastlog: No such file or directory
Workaround:
Simply touching /var/log/lastlog to make it work.
Possibly Related Posts:
- VMware Workstation 7 Serial Key
- WP Contact Form III – You do not have sufficient permissions to access this page Error
- WP Cache Error “semget() failed: Permission denied” Solved
- Google Public DNS Down?
- lppasswd: Unable to open passwd file: Permission denied
Comments
Leave a Reply