Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to help change passwd in AIX

Status
Not open for further replies.

lblauen

Technical User
Aug 13, 2002
69
I'm looking for a script for AIX to help change roots password on many systems. We have to change roots password every other month and now I log into all the servers and make a new password for root. How can I do this in a script??

for i in `cat aixlist`
do
rsh $i passwd
??????
The aixlist has all the systems I need to figure out a way to type the command changepw test
This should go to each system as my id in this case root and change the password to test. Can this be done and how? I looked at the command from smit and couldn't figure out how to make it non interactive.
 
I have been told several times it woudl require a C program to do this. Maybe someone will come up with something new here, I would like to be able to do this (not just for ROOT) as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top