Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Security
cancel
Showing results for 
Search instead for 
Did you mean: 

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

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