Date: Thu, 2 Sep 2004 22:32:17 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: meads594@comcast.net Cc: freebsd-questions@freebsd.org Subject: Re: logging all logins with periodic Message-ID: <20040902193216.GB6131@gothmog.gr> In-Reply-To: <20040902164146.GB91908@happy-idiot-talk.infracaninophile.co.uk> References: <090220041534.5989.41373D810003C3B1000017652200734748CBC7CA9C0B0E0A03@comcast.net> <20040902164146.GB91908@happy-idiot-talk.infracaninophile.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-09-02 17:41, Matthew Seaman <m.seaman@infracaninophile.co.uk> 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) $
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040902193216.GB6131>