#!/bin/ksh # # Author: Chris Narcouzi cnarcouz [ at ] cswg [ dot ] com # # This script provides input to Expect script called change_passwd.exp. # The change_passwd.exp script actually telnet to the UNIX box provided # with the root password provided and change the userid provided password. # The password for the user is set in change_passwd.exp script. You can # modify it in that script. You can tailor this script and use a for loop # to perform mass password changes. root_passwd="password" UNIX="unix-box-name" userid="userid" expect -f /your/directory/change_passwd.exp $UNIX $userid $root_passwd