<?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: password aging script in trusted systems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270320#M655896</link>
    <description>Thanks!!</description>
    <pubDate>Wed, 19 Jan 2011 10:37:42 GMT</pubDate>
    <dc:creator>Sri123</dc:creator>
    <dc:date>2011-01-19T10:37:42Z</dc:date>
    <item>
      <title>password aging script in trusted systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270314#M655890</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I just got this script in one of the threads, for password expiry notification.&lt;BR /&gt;&lt;BR /&gt;I would like to know what current_time has to be set, as i am getting error in my script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;USER=someusername&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;&lt;BR /&gt;&lt;BR /&gt;Script returns,&lt;BR /&gt;&lt;BR /&gt;ofadr-6CPU@DB&amp;gt;./passwdexp1.sh&lt;BR /&gt;./passwdexp1.sh[24]: 15:09:03: Syntax error&lt;BR /&gt;&lt;BR /&gt;Attached is the actual script that i run.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2011 11:13:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270314#M655890</guid>
      <dc:creator>Sri123</dc:creator>
      <dc:date>2011-01-18T11:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: password aging script in trusted systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270315#M655891</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Looks like an aritmetic operator is trying to use the "15:09:03" value. Try execute it again ussing the trace option, is useful to debug:&lt;BR /&gt;ofadr-6CPU@DB&amp;gt;sh -x passwdexp1.sh&lt;BR /&gt;&lt;BR /&gt;Waiting for your next post.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 18 Jan 2011 11:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270315#M655891</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-01-18T11:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: password aging script in trusted systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270316#M655892</link>
      <description>&lt;BR /&gt;Attached is the output. Looks like a same error.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2011 11:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270316#M655892</guid>
      <dc:creator>Sri123</dc:creator>
      <dc:date>2011-01-18T11:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: password aging script in trusted systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270317#M655893</link>
      <description>Before the IF statement show the value of $days_left variable (echo $days_left).&lt;BR /&gt;&lt;BR /&gt;Also suggest you an echo of all variables belonging at formulas previous the IF.&lt;BR /&gt;&lt;BR /&gt;Then run it again with debug option.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Tue, 18 Jan 2011 11:59:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270317#M655893</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-01-18T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: password aging script in trusted systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270318#M655894</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Previous post is just for debuging...</description>
      <pubDate>Tue, 18 Jan 2011 12:27:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270318#M655894</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-01-18T12:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: password aging script in trusted systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270319#M655895</link>
      <description>&lt;BR /&gt;Figured it out!! Attached is the script which works fine, but it requires perl to be installed in the system.</description>
      <pubDate>Wed, 19 Jan 2011 10:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270319#M655895</guid>
      <dc:creator>Sri123</dc:creator>
      <dc:date>2011-01-19T10:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: password aging script in trusted systems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270320#M655896</link>
      <description>Thanks!!</description>
      <pubDate>Wed, 19 Jan 2011 10:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-aging-script-in-trusted-systems/m-p/5270320#M655896</guid>
      <dc:creator>Sri123</dc:creator>
      <dc:date>2011-01-19T10:37:42Z</dc:date>
    </item>
  </channel>
</rss>

