From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: monitoring both logins and logouts via ssh Date: Fri, 25 May 2007 08:54:40 -0400 Message-ID: <200705250854.40375.sgrubb@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com Cc: Michael Folsom List-Id: linux-audit@redhat.com On Thursday 24 May 2007 19:07:21 Michael Folsom wrote: > Working with audit (ver=3D1.2.9) on SLES10 sp1 rc2 and wonder if it was > possible to monitor both logins and logouts. Logins are denoted by a USER_LOGIN event. There should also be a USER_STA= RT=20 event from the same tty/pty or host, auid, and pid. This marks the beginn= ing=20 of a session. You should be able to look for a corresponding USER_END to=20 denote the end of a session. If USER_START results indicates a failure, t= here=20 will not be a USER_END. > Currently my system is recording when a user logs in but not when they = log > out of a ssh session. =A0Is this even possible? With a little inference, its possible. I started to put in a USER_LOGOUT=20 event, but I decided its redundant when it can be inferred by the session= =20 events. -Steve