Re: Unable to set a password and force change on first login on a trusted system (794 Views)
Reply
Advisor
thrubovc
Posts: 34
Registered: ‎03-13-2012
Message 1 of 3 (837 Views)

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

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,962
Registered: ‎03-06-2006
Message 2 of 3 (822 Views)

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:"?

Please use plain text.
Advisor
thrubovc
Posts: 34
Registered: ‎03-13-2012
Message 3 of 3 (794 Views)

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:)

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation