script not working as intended for password

Hi

I have a script which uses expect and I run it on solaris 10 to set a common password for all users. I run it as `./script password` but when I tried to log into the system then I do not really have to type password, pressing ENTER on keyboard logs the user into system. (ssh)

This below is script and I feed it with a file with user names.

################### ab is file with user names

any one ?well atleast give me a ready solution on setting passwords for large users either password = userid or password = common for everyone

I would make the users change passwords at first login later, which need not be part of script.just need to set password easily.

Also if please remember the script will be run on solaris 9 or 10 OS and not on Linux :slight_smile:

Thanks

:smiley: I found it myself :wink:

## ab file has the list of users whose password I am changing

I run the above script as ./script <password I want>

that sets the password for all users to what I want ! :slight_smile: