From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Brehl, Blake" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: list of last login times for all accounts ? Date: Fri, 07 Feb 2003 10:31:14 -0800 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044642575 26057 80.91.224.249 (7 Feb 2003 18:29:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Feb 2003 18:29:35 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18hDFm-0006ly-00 for ; Fri, 07 Feb 2003 19:29:34 +0100 Original-Received: (qmail 30826 invoked by uid 5); 7 Feb 2003 18:31:27 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 30817 invoked by uid 49493); 7 Feb 2003 18:31:27 -0000 Original-Received: from Blake.Brehl@anritsu.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-1.9/5.0):. Processed in 0.372183 secs); 07 Feb 2003 18:31:27 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 7 Feb 2003 18:31:26 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9Y007CBBGDGI@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 07 Feb 2003 13:31:26 -0500 (EST) Original-Received: from mailhost2.us.anritsu.com (mailhost2.us.anritsu.com [65.192.11.4]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9Y008HTBG61P@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 07 Feb 2003 13:31:19 -0500 (EST) Original-Received: from mail pickup service by mailhost2.us.anritsu.com with Microsoft SMTPSVC; Fri, 07 Feb 2003 10:31:17 -0800 Original-Received: from moh-exc-001.main.intgin.net ([172.26.1.92]) by mailhost2.us.anritsu.com with Microsoft SMTPSVC(5.0.2195.3779); Fri, 07 Feb 2003 10:31:15 -0800 Original-Received: by moh-exc-001.main.intgin.net with Internet Mail Service (5.5.2653.19) id ; Fri, 07 Feb 2003 10:31:15 -0800 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Mailer: Internet Mail Service (5.5.2653.19) X-OriginalArrivalTime: 07 Feb 2003 18:31:15.0142 (UTC) FILETIME=[18EF4660:01C2CED7] Xref: main.gmane.org gmane.os.tru64.managers:3259 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3259 The consensus was using the "last" command which displays content of the /usr/adm/wtmp file. You can also use some options of "who", like "who /usr/adm/wtmp". Unfortunately, there's only a weeks worth of content, due to the root crontab entry: 0 2 * * 0 /usr/lbin/logclean /var/adm/wtmp > /dev/null Best Regards, Blake >-----Original Message----- >From: Brehl, Blake >Sent: Friday, February 07, 2003 8:37 AM >To: Tru64 Mailing List (tru64-unix-managers@ornl.gov) >Subject: list of last login times for all accounts ? > > >Hello Guru's, > >Is there a way to generate a list of the the last login times >for all accounts on the server, similar to the message you >receive when you login: > >login: some_account >Password: >Last login: Fri Feb 7 08:12:00 PST 2003 from some_IP > >Hopefully in a shell script? > >Our 1st requirement is for a C2 enabled server. Also have >requirements for C1 boxes. Were running Tru64UNIX 5.1 pk1 and >5.1A pk1. > >Best Regards, > >Blake Brehl >Sr. DBA >Anritsu Company United States >Morgan Hill, CA > This message is intended for the use of the individual/entity to whom it is addressed. This message may contain privileged information exempt from disclosure. If you are not the addressee, distribution or copying of this message, or dissemination of the information contained herein is strictly prohibited. If you should receive this message in error, please destroy it, or return to sender, Thank You