<?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: can't change an expired password account in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080207#M738461</link>
    <description>No time changes have nothing to do with this. The /tcb database stores all times in epoch seconds which are timezone insensitive. I suspect this happened as a side-effect of converting your system to Trusted or you ran a script which did a passwd -f for all users.</description>
    <pubDate>Mon, 19 Nov 2007 16:07:56 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2007-11-19T16:07:56Z</dc:date>
    <item>
      <title>can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080199#M738453</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I've got an HP-UX 11.11 box that is Trusted.  I'm experiencing something weird today.&lt;BR /&gt;&lt;BR /&gt;When a user that is password has experied tries to login, he is prompted for is Old password, then the system says Sorry. and ask again for the Password:&lt;BR /&gt;&lt;BR /&gt;Your password has expired.&lt;BR /&gt;Changing password for jcaplett&lt;BR /&gt;Old password:&lt;BR /&gt;Sorry.&lt;BR /&gt;&lt;BR /&gt;Password:&lt;BR /&gt;Changing password for jcaplett&lt;BR /&gt;Old password:&lt;BR /&gt;Sorry.&lt;BR /&gt;&lt;BR /&gt;Password:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It just don't stop looping and asking for Old password... I tried this with my account, and I'm positively sure that I type correctly my password. The account is not disable, neither locked...&lt;BR /&gt;&lt;BR /&gt;Any idea on what can cause that?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Jonathan</description>
      <pubDate>Mon, 19 Nov 2007 11:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080199#M738453</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2007-11-19T11:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080200#M738454</link>
      <description>Execute "/usr/lbin/getprpw -m lockout user" and note the position of each '1' in this 7 character string. Next do a man getprpw and pay attention to the "lockout" section. That will identify exactly which condition is triggering your lockout. I suspect that all passwords have been expired. You can clear this condition by executing "/usr/lbin/modprpw -k user". Note: If all account have been expired, you will need to bring the box up in single-user and then mount /usr to fix this.</description>
      <pubDate>Mon, 19 Nov 2007 11:25:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080200#M738454</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-11-19T11:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080201#M738455</link>
      <description>By the way, you can also execute /sbin/passwd as it doesn't do the checking that /usr/bin/passwd does.</description>
      <pubDate>Mon, 19 Nov 2007 11:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080201#M738455</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-11-19T11:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080202#M738456</link>
      <description>The problem is that the accounts aren't locked...&lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/getprpw -m lockout jcaplett&lt;BR /&gt;lockout=0000000&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2007 11:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080202#M738456</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2007-11-19T11:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080203#M738457</link>
      <description>Ok, do this:&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/getprpw user&lt;BR /&gt;&lt;BR /&gt;and then cat /tcb/files/auth/system/default.&lt;BR /&gt;&lt;BR /&gt;You may have a system-wide default that is killing you.</description>
      <pubDate>Mon, 19 Nov 2007 12:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080203#M738457</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-11-19T12:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080204#M738458</link>
      <description>Here it is...&lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/getprpw jcaplett&lt;BR /&gt;uid=109, bootpw=NO, audid=21, audflg=1, mintm=2, maxpwln=-1, exptm=45, lftm=90, spwchg=Wed Dec 31 19:00:00 1969, upwchg=Mon Nov 19 10:47:26 2007, acctexp=-1, llog=90, expwarn=14, usrpick=DFT, syspnpw=NO, rstrpw=YES, nullpw=DFT, admnum=-1, syschpw=NO, sysltpw=DFT, timeod=-1, slogint=Mon Nov 19 10:46:51 2007, ulogint=Mon Nov 19 10:47:26 2007, sloginy=console, culogin=-1, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0000000&lt;BR /&gt;&lt;BR /&gt;# cat /tcb/files/auth/system/default&lt;BR /&gt;default:\&lt;BR /&gt;        :d_name=default:\&lt;BR /&gt;        :d_boot_authenticate@:\&lt;BR /&gt;        :u_pwd=*:\&lt;BR /&gt;        :u_owner=root:u_auditflag#-1:\&lt;BR /&gt;        :u_minchg#0:u_maxlen#15:u_exp#0:u_life#0:\&lt;BR /&gt;        :u_llogin#0:u_pw_expire_warning#0:u_pswduser=root:u_pickpw:\&lt;BR /&gt;        :u_genpwd@:u_restrict@:u_nullpw@:u_genchars@:\&lt;BR /&gt;        :u_genletters@:u_suclog#0:u_unsuclog#0:u_maxtries#3:\&lt;BR /&gt;        :u_lock:\&lt;BR /&gt;        :t_logdelay#2:t_maxtries#3:t_login_timeout#60:\&lt;BR /&gt;        :chkent:&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Nov 2007 13:04:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080204#M738458</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2007-11-19T13:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080205#M738459</link>
      <description>Note this entry:&lt;BR /&gt;&lt;BR /&gt;spwchg=Wed Dec 31 19:00:00 1969&lt;BR /&gt;&lt;BR /&gt;When adjusted for your timesone that is 1-Jan-1970 00:00:00 UTC (the zero epoch second) and it means change the password at the first login. In effect, passwd -f has been run on all users. There is no facility in modprpw to set the spwchg field (time of last sucessfull password change) although the putprpwnam() function can be used to set it or you could write some Perl, sed, or awk to edit the /tcb entry for each user to substitute a more recent password change timestamp.</description>
      <pubDate>Mon, 19 Nov 2007 13:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080205#M738459</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-11-19T13:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080206#M738460</link>
      <description>OK I see...&lt;BR /&gt;&lt;BR /&gt;Is this happened only on users that have there password expired?&lt;BR /&gt;&lt;BR /&gt;And will this happen evrey time change that we have?  Last time change have been done on November 4th 2007..&lt;BR /&gt;&lt;BR /&gt;Jonathan</description>
      <pubDate>Mon, 19 Nov 2007 13:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080206#M738460</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2007-11-19T13:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080207#M738461</link>
      <description>No time changes have nothing to do with this. The /tcb database stores all times in epoch seconds which are timezone insensitive. I suspect this happened as a side-effect of converting your system to Trusted or you ran a script which did a passwd -f for all users.</description>
      <pubDate>Mon, 19 Nov 2007 16:07:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080207#M738461</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-11-19T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080208#M738462</link>
      <description>Unfortunaly I'm not a Perl expert... Any way I can change that value without using perl?</description>
      <pubDate>Tue, 20 Nov 2007 14:15:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080208#M738462</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2007-11-20T14:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080209#M738463</link>
      <description>Notice a gave you a C/C++, Perl, sed, or awk option so I can probably surmise that you aren't an expert in any of those as well. &lt;BR /&gt;&lt;BR /&gt;The attached, UNTESTED shell script should work. The step that copies the temporary file back to the tcb file is intentionally commented out. Uncomment it after you are satisfied.&lt;BR /&gt;&lt;BR /&gt;Before doing anything else be logged in as root in at least two sessions so that you can get yourself out of trouble almost as fast as you got yourself in.&lt;BR /&gt;&lt;BR /&gt;Next:&lt;BR /&gt;cd /&lt;BR /&gt;find ./tcb -print | cpio -ocv &amp;gt; /aaa/bbb/tcb.cpio # a backup of the tcb database&lt;BR /&gt;&lt;BR /&gt;To run the script, simply "fixit.sh". It will look for all UID's &amp;gt;= 101 and then edit each tcb file saving it to a temporary file. When uncommented the temporary file is copied to the original for each user with a current timestamp.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Nov 2007 15:31:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080209#M738463</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-11-20T15:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080210#M738464</link>
      <description>Thanks it work fine... &lt;BR /&gt;&lt;BR /&gt;I now have to look why that date have been changed... &lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Jonathan&lt;BR /&gt;&lt;BR /&gt;now closing this tread</description>
      <pubDate>Tue, 20 Nov 2007 16:16:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080210#M738464</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2007-11-20T16:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080211#M738465</link>
      <description>closed</description>
      <pubDate>Tue, 20 Nov 2007 16:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080211#M738465</guid>
      <dc:creator>Jonathan Caplette_1</dc:creator>
      <dc:date>2007-11-20T16:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: can't change an expired password account</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080212#M738466</link>
      <description>changing spwchg can be done by:&lt;BR /&gt;/usr/lbin/modprpw     -v [username]</description>
      <pubDate>Wed, 28 Nov 2007 16:52:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-change-an-expired-password-account/m-p/5080212#M738466</guid>
      <dc:creator>F Verschuren</dc:creator>
      <dc:date>2007-11-28T16:52:34Z</dc:date>
    </item>
  </channel>
</rss>

