From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Knorr Newsgroups: gmane.os.tru64.managers Subject: Determining last login time for a user Date: Thu, 21 Jul 2005 13:21:06 -0400 Message-ID: <034f01c58e18$946232f0$b4c8a8c0@hopsdc.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1121966567 14797 80.91.229.2 (21 Jul 2005 17:22:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Jul 2005 17:22:47 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 21 19:22:38 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DvekE-0004sN-Vy for gotm-tru64-unix-managers@gmane.org; Thu, 21 Jul 2005 19:22:03 +0200 Original-Received: (qmail 22474 invoked by uid 49509); 21 Jul 2005 17:21:50 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 22459 invoked by uid 49501); 21 Jul 2005 17:21:50 -0000 Original-Received: from 160.91.86.17 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 1.330559 secs); 21 Jul 2005 17:21:50 -0000 X-Spam-Status: No, hits=-2.6 required=5.0 Original-Received: from emroute2.cind.ornl.gov (160.91.86.17) by sws1.ornl.gov with SMTP; 21 Jul 2005 17:21:48 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IJZ00JOIMW9FV@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 21 Jul 2005 13:21:48 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0IJZ00802MV83T@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 21 Jul 2005 13:21:22 -0400 (EDT) Original-Received: from gull.hopsdc.com (gull.hopsdc.com [199.227.253.10]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IJZ00KKHMV707@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 21 Jul 2005 13:21:08 -0400 (EDT) Original-Received: from cknorrlap ([192.168.200.180]) by gull.hopsdc.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 21 Jul 2005 13:21:06 -0400 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-Envelope-From: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on email.cind.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.0.4 X-OriginalArrivalTime: 21 Jul 2005 17:21:06.0967 (UTC) FILETIME=[9460FA70:01C58E18] Xref: news.gmane.org gmane.os.tru64.managers:8453 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8453 This should be simple but it's causing me heartburn. I just want to know = the last time any of the users on my Tru64 Unix V5.1B system have logged in. = The system shows it when you actually log in so I know it's there somewhere. = I want to do this from a system management (root) level so I can look to = get rid of accounts that haven't been used in a long time. I tried the lastlogin command. It did create a file called /var/adm/acct/sum/loginlog, but the first column (presumably the date) = is all zero's. I tried parsing my way through /var/adm/wtmp and it doesn't = even seem like all the information is there, but in any case, it's very hard = to read. thanks! Chris