AIX: how to change a password as root without setting the ADMCHG flag?

50,425

Solution 1

man pwdadm
pwdadm -c

Solution 2

  1. Use passwd to change the user's password: passwd $user

  2. Use pwdadm command to cancel the password-change prompt: pwdadm -c $user

That's it! :)

Solution 3

echo "user:n3w_p466w0rd" | /bin/chpasswd -c

Share:
50,425

Related videos on Youtube

Ryan Emerle
Author by

Ryan Emerle

With twenty years of passion and innovation in the area of software development and engineering, I am continuously pushing myself to improve the world. I am wary of trends, as they tend to fade away with their novelty, but I recognize their value. I appreciate the fresh perspectives offered by the ever-evolving landscape of new languages, frameworks, libraries and best practices. I look forward, daily, to cultivating new ideas and solving hard problems. * The views expressed on this site by Ryan are his personal opinion and do not necessarily reflect the views of his employer or clients.

Updated on September 17, 2022

Comments

  • Ryan Emerle
    Ryan Emerle almost 2 years

    I'd like to change the password of another user, as root, but don't want the user to be prompted to change their password when the log in. As far as I can tell, any mechanism to change the password as root set the ADMCHG flag in /etc/security/passwd