From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Galt Newsgroups: gmane.os.tru64.managers Subject: Summary: Verifying that a user changed their password within u_exp Date: Tue, 07 Sep 2004 09:31:24 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <5.1.0.14.2.20040907092329.03a531b8@mail.comcast.net> References: <5.1.0.14.2.20040830121336.028ceb48@mail.comcast.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii X-Trace: sea.gmane.org 1094563364 9809 80.91.224.253 (7 Sep 2004 13:22:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Sep 2004 13:22:44 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Sep 07 15:22:24 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1C4fvT-0006RU-00 for ; Tue, 07 Sep 2004 15:22:23 +0200 Original-Received: (qmail 25514 invoked by uid 5); 7 Sep 2004 13:22:14 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 25499 invoked by uid 49501); 7 Sep 2004 13:22:14 -0000 Original-Received: from jgalt163@comcast.net by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-3.9/5.0):. Processed in 0.788373 secs); 07 Sep 2004 13:22:14 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 7 Sep 2004 13:22:13 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I3O00B50AH0VL@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 Sep 2004 09:22:12 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0I3O00H02AGOGA@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 Sep 2004 09:22:00 -0400 (EDT) Original-Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I3O00G8XAGNIV@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 Sep 2004 09:21:59 -0400 (EDT) Original-Received: from jslaptop.comcast.net (unknown[208.46.144.156]) by comcast.net (sccrmhc11) with SMTP id <20040907132158011005eqn8e> (Authid: jgalt163); Tue, 07 Sep 2004 13:21:58 +0000 In-reply-to: <5.1.0.14.2.20040830121336.028ceb48@mail.comcast.net> X-Sender: jgalt163@mail.comcast.net Original-To: tru64-unix-managers@ornl.gov X-Mailer: QUALCOMM Windows Eudora Version 5.1 Xref: main.gmane.org gmane.os.tru64.managers:7533 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7533 Hello Managers, Thanks to all who responded. As everyone pointed out, the prpasswd parameter "u_succhg" indicates the t_time since the user changed their password. However, I needed a way to make that human readable. Thanks to Rochelle Lauer who sent a C program that would convert those seconds to the actual date. I've included the programs at the end of this email. Also to Dan Price, who sent a simpler command that will convert the time to an actual date. That command is: # echo "ctime 1053073399" | kdbx -k vmunix | tail -1 I will work on a script that will extract the u_succhg string from a user's edauth output and feed it to one of these commands. Thanks again. John Rochelle's Programs: --- convert_time_readable.c ------------- #include main(int argc, char *argv[]) { time_t mktime(struct tm *usertime); char *ctime (const time_t *timer); struct tm *localtime(const time_t *timer); const time_t *out_time_ptr; struct tm *out_tm; time_t date_time_t; char *out_ascii ; date_time_t = 0; if (argc != 2) { printf ("Parameters missing\n"); exit(); } sscanf(argv[1],"%d",&date_time_t); out_time_ptr= &date_time_t; out_ascii = ctime(out_time_ptr); printf(" %s",out_ascii); out_tm = localtime(out_time_ptr); exit(); } --------------------------- #include /* convert_time.c rl jan 1998 input: date as a time_t value (seconds since jan 1970) output month (0-11) day year (since 1900) hour minute see convert_time_readable for a ascii readable date format */ main(int argc, char *argv[]) { time_t mktime(struct tm *usertime); char *ctime (const time_t *timer); struct tm *localtime(const time_t *timer); const time_t *out_time_ptr; struct tm *out_tm; time_t date_time_t; char *out_ascii ; date_time_t = 0; if (argc != 2) { printf ("Parameters missing\n"); exit(); } sscanf(argv[1],"%d",&date_time_t); out_time_ptr= &date_time_t; out_ascii = ctime(out_time_ptr); /* printf(" %s",out_ascii); */ out_tm = localtime(out_time_ptr); printf("%d %d %d %d %d",out_tm->tm_mon,out_tm->tm_mday,out_tm->tm_year,out_tm- >tm_hour,out_tm->tm_min); exit();} Original Post: >Hello Managers, > >We are running T64 v5.1a patch 2 with Enhanced Security enabled. > >The u_exp setting is set for 90 days and has always appeared to work properly. > >However, I've been asked to be able to "prove" that a user actually has >changed their password within the last 90 days. > >Is there a logging mechanism that can be enabled to log when a user last >changed their password? Is this something I can find with evm? > >How can I demonstrate that the user has changed their password in the >last 90 days? > >Thanks. > >John