<?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: Need help in scripting. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-in-scripting/m-p/3449096#M208519</link>
    <description>See the man page for getprpw.  The combination of options you'll want is probably going to be these:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/getprpw -m exptm,lftm,expwarn,mintm,acctexp&lt;BR /&gt;&lt;BR /&gt;the second value, lftm, is the password lifetime in number of days since last change. If you get the date from the ls -l listing for /tcb/files/auth/[letter]/[loginID]&lt;BR /&gt;&lt;BR /&gt;where [letter] is the first letter of the LoginID and [LoginID] is the ID you want to query, that will get you where you want to go.  The actually expiration date and time are stored in that file (the number after "u_suclog#"), but it's in internal format and you'd have to resort to a C library call to get it converted, I think.&lt;BR /&gt;&lt;BR /&gt;mark</description>
    <pubDate>Wed, 22 Dec 2004 15:17:53 GMT</pubDate>
    <dc:creator>Mark Greene_1</dc:creator>
    <dc:date>2004-12-22T15:17:53Z</dc:date>
    <item>
      <title>Need help in scripting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-in-scripting/m-p/3449094#M208517</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I have been assigned a job to send a report to every users "When their password will expire".&lt;BR /&gt;&lt;BR /&gt;We only have trusted systems and i have created a list of server in a file called hpserverlist.&lt;BR /&gt;&lt;BR /&gt;I am not good at scripting but knows little bit.&lt;BR /&gt;&lt;BR /&gt;My intention is to create an output in a file with the following:&lt;BR /&gt;&lt;BR /&gt;SERVER NAME : USER NAME : DATE of Expiration.&lt;BR /&gt;&lt;BR /&gt;i am also on the job, but if anybody is quicker than me ...i will really appreciate it.&lt;BR /&gt;&lt;BR /&gt;THanks,&lt;BR /&gt;am</description>
      <pubDate>Wed, 22 Dec 2004 13:12:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-in-scripting/m-p/3449094#M208517</guid>
      <dc:creator>Amruth</dc:creator>
      <dc:date>2004-12-22T13:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in scripting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-in-scripting/m-p/3449095#M208518</link>
      <description>doing a seach on password trusted expire will give you lots of information.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=695870" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=695870&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;admit=-1335382922+1103740686914+28353475&amp;amp;docId=200000074740865" target="_blank"&gt;http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;admit=-1335382922+1103740686914+28353475&amp;amp;docId=200000074740865&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;lots of good information about scripting at this site also&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2004 13:42:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-in-scripting/m-p/3449095#M208518</guid>
      <dc:creator>c_51</dc:creator>
      <dc:date>2004-12-22T13:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in scripting.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-help-in-scripting/m-p/3449096#M208519</link>
      <description>See the man page for getprpw.  The combination of options you'll want is probably going to be these:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/getprpw -m exptm,lftm,expwarn,mintm,acctexp&lt;BR /&gt;&lt;BR /&gt;the second value, lftm, is the password lifetime in number of days since last change. If you get the date from the ls -l listing for /tcb/files/auth/[letter]/[loginID]&lt;BR /&gt;&lt;BR /&gt;where [letter] is the first letter of the LoginID and [LoginID] is the ID you want to query, that will get you where you want to go.  The actually expiration date and time are stored in that file (the number after "u_suclog#"), but it's in internal format and you'd have to resort to a C library call to get it converted, I think.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Wed, 22 Dec 2004 15:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-help-in-scripting/m-p/3449096#M208519</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2004-12-22T15:17:53Z</dc:date>
    </item>
  </channel>
</rss>

