From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawries@btinternet.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: User account state change emails Date: Thu, 28 Aug 2003 13:47:01 +0100 (BST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <7415796.1062074821232.JavaMail.root@127.0.0.1> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1062074855 18763 80.91.224.253 (28 Aug 2003 12:47:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2003 12:47:35 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Aug 28 14:47:34 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19sMBZ-0007MX-00 for ; Thu, 28 Aug 2003 14:47:33 +0200 Original-Received: (qmail 4503 invoked by uid 5); 28 Aug 2003 12:47:17 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4494 invoked by uid 49493); 28 Aug 2003 12:47:17 -0000 Original-Received: from lawries@btinternet.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-4.7/5.0):. Processed in 0.602892 secs); 28 Aug 2003 12:47:17 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 28 Aug 2003 12:47:16 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HKB00M8LY6NIP@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 28 Aug 2003 08:47:15 -0400 (EDT) Original-Received: from thorium.btinternet.com (thorium.btinternet.com [194.73.73.67]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HKB0011MY6ELV@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 28 Aug 2003 08:47:03 -0400 (EDT) Original-Received: from silver ([194.75.226.19]) by thorium.btinternet.com with esmtp (Exim 3.22 #8) id 19sMB3-0001Ih-00 for tru64-unix-managers@ornl.gov; Thu, 28 Aug 2003 13:47:01 +0100 Original-Received: from 193.130.99.253 by silver ([194.75.226.19]); Thu, 28 Aug 2003 13:47:01 +0100 (BST) Original-To: tru64-unix-managers@ornl.gov X-Mailer: talk21.com WAS v2 Xref: main.gmane.org gmane.os.tru64.managers:5216 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5216 Admins, Its some time now since I posted this question, I was looking for a mechanism to send emails automatically when certain user account conditions change. e.g. If an accounts is locked out due to 5 failed login attempts, I wanted an email notification, ideally via the EVM sub-system. There were no replies regarding the use of EVM for this purpose. However, there were a number of replies regarding the use of scripts to generate a periodic report on user accounts. Finally, I went with a suggestion from Mark Deiss who said ... > > You can grab module bb-tcb.tgz off www.deadcat.net. This package is meant to > work as a monitoring module with the Big Brother(BB) or Big Sister(BS) > packages. It can handle checking user accounts for a variety of security > levels and OS's. It is a bit of overkill has there are functions that are > meant to deal with other operating systems. You will have to do some > modifications as it works with the BB/BS packages to set operating system > dependencies. Basically, any commands of form: $UPPER_CASE_VARIABLE_NAME > will need to be set to the Tru64 command definition (or the command's > specific option list). > So I took this script and reworked it to provide a color coded HTML output file which reports on the condition of all user accounts. Obviously I can't provide an example of the output to this forum but if anyone is interested in viewing the output and receiveing a copy of this script please email me direct at: lawrie.smith@capita.co.uk Thanks to all who replied with suggestions and scripts of their own. Kind regards. Lawrie.