Operating System - HP-UX
1751807 Members
3477 Online
108781 Solutions
New Discussion

Re: Password cannot be changed. Reason: password lifetime has passed.

 
SOLVED
Go to solution

Password cannot be changed. Reason: password lifetime has passed.

 

"Password cannot be changed.  Reason: password lifetime has passed."

 

This message iam getting when i tried to reset password for a perticular user

 

getprpw output given as under:

 

>/usr/lbin/getprpw ks1
uid=213, bootpw=NO, audid=79, audflg=1, mintm=-1, maxpwln=-1, exptm=-1, lftm=-1, spwchg=Fri Feb 11 18:24:13 2011, upwchg=Fri Sep 30 19:42:18 2011, acctexp=-1, llog=-1, expwarn=-1, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Fri Sep 30 19:41:27 2011, ulogint=Fri Sep 30 15:26:58 2011, sloginy=pts/tb, culogin=-1, uloginy=pts/ta, umaxlntr=-1, alock=NO, lockout=1000000

6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: Password cannot be changed. Reason: password lifetime has passed.

You need to unlock the accout before you can change the password.

 

# /usr/lbin/modprpw -k ks1

 

Once that is done you will be able to change the password.

Arunabha Banerjee
Valued Contributor

Re: Password cannot be changed. Reason: password lifetime has passed.

First you need to set password lifetime value to 0

# /usr/lbin/modprpw -v ks1

 

Then unlock the user account

# /usr/lbin/modprpw -k ks1

 

 

AB

Re: Password cannot be changed. Reason: password lifetime has passed.

Hi Arunabha,,, I had tried the above steps but still it is showing same message.

 

root @ DRCSPARE : / >/usr/lbin/modprpw -v ks1
root @ DRCSPARE : / >/usr/lbin/getprpw ks1
uid=213, bootpw=NO, audid=79, audflg=1, mintm=-1, maxpwln=-1, exptm=-1, lftm=-1, spwchg=Fri Feb 11 18:24:13 2011, upwchg=Fri Sep 30 19:42:18 2011, acctexp=-1, llog=-1, expwarn=-1, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Fri Sep 30 19:41:27 2011, ulogint=Fri Sep 30 15:26:58 2011, sloginy=pts/tb, culogin=-1, uloginy=pts/ta, umaxlntr=-1, alock=NO, lockout=1000000
root @ DRCSPARE : / >/usr/lbin/modprpw -k ks1
root @ DRCSPARE : / >passwd ks1
Changing password for ks1
Last successful password change for ks1: Fri Feb 11 18:24:13 2011
Last unsuccessful password change for ks1: Fri Sep 30 19:42:18 2011


Password cannot be changed.  Reason: password lifetime has passed.

Arunabha Banerjee
Valued Contributor

Re: Password cannot be changed. Reason: password lifetime has passed.

I don't know why it is not working with you.

 

Here is an example:

 

server1: / > /usr/lbin/getprpw -l joe
uid=128, bootpw=NO, audid=68, audflg=1, mintm=2, maxpwln=-1, exptm=-1, lftm=-1, spwchg=Thu Jul  7 11:36:52 2011, upwchg=-1, acctexp=-1, llog=-1, expwarn=-1, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Thu Aug  4 01:57:16 2011, ulogint=Thu Jul  7 13:18:08 2011, sloginy=-1, culogin=-1, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0000000

 

You can see "spwchg=Thu Jul  7 11:36:52 2011"  and then I set password liftime value to "0". 

 

server1: / > /usr/lbin/modprpw -v joe

 

Now see the output again:

 

server1: / > /usr/lbin/getprpw -l joe
uid=128, bootpw=NO, audid=68, audflg=1, mintm=2, maxpwln=-1, exptm=-1, lftm=-1, spwchg=Sun Oct  2 21:50:20 2011, upwchg=-1, acctexp=-1, llog=-1, expwarn=-1, srpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Thu Aug  4 01:57:16 2011, ulogint=Thu Jul  7 13:18:0 2011, sloginy=-1, culogin=-1, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0000000

 

You can see "spwchg=Sun Oct  2 21:50:20 2011" 

 

Please give me the below output:

 

# uname -a

# /usr/lbin/getprpw -l ks1

AB
Solution

Re: Password cannot be changed. Reason: password lifetime has passed.

Thanks Arunabha, for your support,

 

Actually "/tcb/files... " for a particular user has been corrupted ........

 

when i deleted the below line

:u_succhg#1317646089:u_suclog#1317646240:u_unsuclog#1317646237:u_lock@:\

 

and tried to reset my password, it is resolved.

 

Regards

Krishna......

 

sroy52
New Member

Re: Password cannot be changed. Reason: password lifetime has passed.

Servername>passwd -f user_id

(there will be no output)

Servername> passwd user_id

(You can set the new password here)