06-06-2012 06:47 AM
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
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
06-06-2012 12:15 PM
passwd -f should do what you want.
>Your password has expired.
>su: Password for omx has expired. Choose new password and try again
Any reason your messages are prefixed by "su:"?
06-22-2012 12:44 PM
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:)