Operating System - HP-UX
1752402 Members
6207 Online
108788 Solutions
New Discussion юеВ

Unable to set a password and force change on first login on a trusted system

 
thrubovc
Advisor

Unable to set a password and force change on first login on a trusted system

Hello.

I have unlocked a user account using modprpw -l -k username. I have set up a new password using passwd username. But I want to force the user to change the password on the first login using either passwd -f username or modprpw -e username. None of them seem to work the I want them to.

aftereither of them I get this

Your password has expired.
su: Password for omx has expired. Choose new password and try again
su: Sorry

but it won't let me go further and change it.

I'm afraid I can't afford to wait any longer so I will have to tell the user the password I have set, but I will appreciate an explanation, maybe I was doing something wrong.

HP UX 11.23

Thanks

2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: Unable to set a password and force change on first login on a trusted system

passwd -f should do what you want.

 

>Your password has expired.
>su: Password for omx has expired. Choose new password and try again
>su: Sorry

 

Any reason your messages are prefixed by "su:"?

thrubovc
Advisor

Re: Unable to set a password and force change on first login on a trusted system

I was trying to switch with su, that's why.

passwd -f didn't do it, but no worries, I have resolved the issue.. somehow:)