AIX Tip of the Week

Subject: Automate Setting Passwords

Audience: Administrators

Date: April 7, 2005

The "chpasswd" command is easier to use than "passwd" when setting a list of user passwords. It can be used from the command line or shell script. For example, to change passwords for users listed in a file, type the following

cat mypasswords  |  chpasswd

Where the mypasswords file contains

user1:password1
user2:password2
...... 

For more information see the following URL

http://publib16.boulder.ibm.com/doc_link/en_US/a_doc_lib/cmds/aixcmds1/chpasswd.htm


Bruce Spencer,
baspence@us.ibm.com

April 7, 2005