From owner-freebsd-questions@FreeBSD.ORG Thu Sep 2 19:36:31 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AD0016A4CE for ; Thu, 2 Sep 2004 19:36:31 +0000 (GMT) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8798C43D31 for ; Thu, 2 Sep 2004 19:35:20 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 26251 invoked by uid 207); 2 Sep 2004 19:35:18 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.149):. Processed in 8.204463 secs); 02 Sep 2004 19:35:18 -0000 Received: from dialup149.ach.sch.gr (HELO gothmog.gr) ([81.186.70.149]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 2 Sep 2004 19:35:09 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i82JWVWp006301; Thu, 2 Sep 2004 22:32:32 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i82JWHmB006296; Thu, 2 Sep 2004 22:32:17 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 2 Sep 2004 22:32:17 +0300 From: Giorgos Keramidas To: meads594@comcast.net Message-ID: <20040902193216.GB6131@gothmog.gr> References: <090220041534.5989.41373D810003C3B1000017652200734748CBC7CA9C0B0E0A03@comcast.net> <20040902164146.GB91908@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040902164146.GB91908@happy-idiot-talk.infracaninophile.co.uk> Phone: +30-2610-312145 Mobile: +30-6944-116520 cc: freebsd-questions@freebsd.org Subject: Re: logging all logins with periodic X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 19:36:31 -0000 On 2004-09-02 17:41, Matthew Seaman wrote: > On Thu, Sep 02, 2004 at 03:34:25PM +0000, meads594@comcast.net wrote: > > Can periodic be used to get a summary of successful logins? Is there > > a different utility that exists? > > The command to use is last(1) -- note by default that reads > /var/log/wtmp which is recycled each month via newsyslog(8). You can > edit the /etc/daily.local script to get that output included in your > daily e-mails. Hint: $ last | grep "$(date '+%b %e')" giorgos ttyv1 Thu Sep 2 22:07 still logged in toor ttyv0 Thu Sep 2 22:06 still logged in toor ttyv0 Thu Sep 2 08:39 - shutdown (02:11) $