This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Finding out login history
- From: Ronald Fischer <fischerr dot external at infineon dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 19 Jan 2009 08:07:22 +0000 (UTC)
- Subject: Finding out login history
Is it possible to find out the login history, i.e. the exact time on the
previous days a user has logged on, respectively the system has been rebooted
(though these times are not the same, in my case I would be happy getting either
one)?
I know that from the data displayed by 'uptime', I can calculate the
time since when the PC is running now, but I would also find the time of
the previous system startups or user logins.
Maybe this is recorded in /var/run/utmp (at least uptime gets is information
from there), but I don't know whether this records the history, and it is a
binary file anyway.
Ronald
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/