<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: trusted system question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917755#M407205</link>
    <description>USER=someusername;U=`echo $USER |cut -c1`&lt;BR /&gt;exp=$(logins -x -l $USER | tail -1 | awk '{print $4}')&lt;BR /&gt;((exp_time = exp * 86400))&lt;BR /&gt;last_change=$(grep u_succhg /tcb/files/auth/$U/$USER | \&lt;BR /&gt;awk -F "u_succhg#" ' {print $2}' |\&lt;BR /&gt;awk -F ":" ' {print $1}' )&lt;BR /&gt;&lt;BR /&gt;((exp_date = last_change + exp_time))&lt;BR /&gt;((time_left = exp_date - current_time))&lt;BR /&gt;((days_left = time_left / 86400))&lt;BR /&gt;&lt;BR /&gt;we use this code snippet in a larger script to scan upcoming password expirations and email our users, as tehy seem to be quite forgetful about this unfortunate event.&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
    <pubDate>Thu, 11 Aug 2005 12:47:28 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2005-08-11T12:47:28Z</dc:date>
    <item>
      <title>trusted system question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917753#M407203</link>
      <description>Hi - I've got trusted system setup, and I've defined (through sam) that passwords will expire in 45 days.  I'm looking for some way to tell when a password for a given account will expire.  I've looked in the individual tcb files, but I don't see things like ulife.&lt;BR /&gt;&lt;BR /&gt;I want to be able to script something to email when a password is getting close to expiring.&lt;BR /&gt;&lt;BR /&gt;Here's an example of one id's auth file:&lt;BR /&gt;:u_name=[username]:u_id#600:\&lt;BR /&gt;        :u_pwd=xqnwLah2e.DlY:\&lt;BR /&gt;        :u_auditid#29:\&lt;BR /&gt;        :u_auditflag#1:\&lt;BR /&gt;        :u_succhg#1120567895:u_unsucchg#1121279523:u_pswduser=cemccary:u_suclog#1123684720:\&lt;BR /&gt;        :u_suctty=tty:u_unsuclog#1122898756:u_unsuctty=tty:u_lock@:\&lt;BR /&gt;        :chkent:&lt;BR /&gt;&lt;BR /&gt;Here's the getprpw info for this same account:&lt;BR /&gt;&lt;BR /&gt;uid=600, bootpw=NO, audid=29, audflg=1, mintm=-1, maxpwln=-1, exptm=-1, lftm=-1, spwchg=Tue Jul  5 07:51:35 2005, upwchg=Wed Jul 13 13:32:03 2005, acctexp=-1, llog=-1, expwarn=-1, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Wed Aug 10 09:38:40 2005, ulogint=Mon Aug  1 07:19:16 2005, sloginy=tty, culogin=-1, uloginy=tty, umaxlntr=-1, alock=NO, lockout=0000000&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do I have something set up incorrectly? Any thoughts?&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Aug 2005 12:38:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917753#M407203</guid>
      <dc:creator>Charles McCary</dc:creator>
      <dc:date>2005-08-11T12:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: trusted system question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917754#M407204</link>
      <description>Charles,&lt;BR /&gt;&lt;BR /&gt;Here are a couple of threads which may be of interest to you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=696912" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=696912&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=722557" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=722557&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 11 Aug 2005 12:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917754#M407204</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-08-11T12:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: trusted system question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917755#M407205</link>
      <description>USER=someusername;U=`echo $USER |cut -c1`&lt;BR /&gt;exp=$(logins -x -l $USER | tail -1 | awk '{print $4}')&lt;BR /&gt;((exp_time = exp * 86400))&lt;BR /&gt;last_change=$(grep u_succhg /tcb/files/auth/$U/$USER | \&lt;BR /&gt;awk -F "u_succhg#" ' {print $2}' |\&lt;BR /&gt;awk -F ":" ' {print $1}' )&lt;BR /&gt;&lt;BR /&gt;((exp_date = last_change + exp_time))&lt;BR /&gt;((time_left = exp_date - current_time))&lt;BR /&gt;((days_left = time_left / 86400))&lt;BR /&gt;&lt;BR /&gt;we use this code snippet in a larger script to scan upcoming password expirations and email our users, as tehy seem to be quite forgetful about this unfortunate event.&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Thu, 11 Aug 2005 12:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917755#M407205</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-08-11T12:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: trusted system question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917756#M407206</link>
      <description>xf</description>
      <pubDate>Thu, 11 Aug 2005 13:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trusted-system-question/m-p/4917756#M407206</guid>
      <dc:creator>Charles McCary</dc:creator>
      <dc:date>2005-08-11T13:57:05Z</dc:date>
    </item>
  </channel>
</rss>

