I want to change password for around 100 users on an aix server.
I have the list of those 100 users with me.
instead of doing
# passwd username
for all the 100 users one by one, can you please help with a script through which we can change the password for all the 100 users in a single shot.
I'm happy to set the password as ask4help for all these 100 users.
Note that chpasswd - like a passwd <user> - will set the ADMCHNG flag in /etc/security/passwd , resulting in a request for the user to change his password the first time logs in after the change.
Usually this is wanted, but in case it is not do a pwdadm -c <user> afterwards. This will clear the aforementioned flag.