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.
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.