Re: [Nolug] login monitor

From: -ray <ray_at_ops.selu.edu>
Date: Thu, 21 Oct 2004 14:17:07 -0500 (CDT)
Message-ID: <Pine.LNX.4.44.0410211414350.11701-100000@romulus.csd.selu.edu>

On Thu, 21 Oct 2004, Petri Laihonen wrote:

> Does anyone have ideas or pointers how to monitor user logons and set
> system to immediately e-mail about it?

Depend on shell, the /etc/profile (bash) or /etc/csh.cshrc (*csh) gets run
upon user login. Add something like

echo "$USER logged in" | mail -s'User login' you@somewhere.com

to those files.

ray

___________________
Nolug mailing list
nolug@nolug.org
Received on 10/21/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST