Change password for many users on an AIX server

Hi

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.

Hi,

please have a look at the command chpasswd .

Example:

echo "user1:ask4help" | chpasswd

Regards

Xray is right. This is the way to go.

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.

I hope this helps.

bakunin