[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] User Logon Notification



Can't remember where I got this
Worse yet, forgot where to put it.

/bin/echo "`cat /etc/HOSTNAME`    User: `id -u`  [ `cat /etc/passwd |grep
\`id  -u\`` ]  logged in" |/bin/mail -s login admin@xxxxxxxxxxxx

(long line wrapped)

Where can I place it so that every user login activates it?

baltimoremd@xxxxxxxxxxxxxxx             Thom LaCosta K3HRN Webmaster  
               http://www.baltimoremd.com/cobaltfacts/
Home of the CobaltFacts Web Ring - cobalt-ot and hosting-biz mailing lists