BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Security
Showing results for 
Search instead for 
Do you mean 

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

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

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