Popular recipes by Mike Lowe http://code.activestate.com/recipes/users/2909790/2006-06-02T09:51:51-07:00ActiveState Code RecipesLast Login Record Extraction (Python)
2006-06-02T09:51:51-07:00Mike Lowehttp://code.activestate.com/recipes/users/2909790/http://code.activestate.com/recipes/496768-last-login-record-extraction/
<p style="color: grey">
Python
recipe 496768
by <a href="/recipes/users/2909790/">Mike Lowe</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
</p>
<p>It took me a while to figure out the file format for /var/log/lastlog on *NIX type machines. Some of the sysadmins out there may find it usefull to be able to determine the last time of login for an account without using any other apps.</p>