delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/19/03:08:04

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Ronald Fischer <fischerr DOT external AT infineon DOT com>
Subject: Finding out login history
Date: Mon, 19 Jan 2009 08:07:22 +0000 (UTC)
Lines: 15
Message-ID: <loom.20090119T080209-788@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019