I followed the thread on passmass. I have it install on both CentOS and Opensolaris. First off, I don't get the defaults. I am prompted for old passwprd, then newpassowrd twice. I have not modified the passmass expect script, I am using it as it came with expect. Here is the line I execute, trying to use it first to change the local passwd. I have linked slogin to ssh:
./passmass -slogin -prompt ":" localhost
And here is what I get:
gcr@Guajome-Dome:/usr/local/src/expect-5.32/example$ ./passmass -slogin -prompt ":" localhost
old password:
new password:
retype new password:
spawn slogin localhost -l gcr
Password:
Last login: Sun Oct 10 12:12:55 2010 from guajome-dome
passwd
Sun Microsystems Inc. SunOS 5.11 snv_111b November 2008
You have new mail.
gcr@Guajome-Dome:~$ passwd
passwd: Changing password for gcr
Enter existing login password: (I typed in existing passwd for gcr)
passwd: Sorry, wrong passwd
Permission denied
./passmass -slogin -prompt ":" localhost
And here is what I get:
gcr@Guajome-Dome:/usr/local/src/expect-5.32/example$ ./passmass -slogin -prompt ":" localhost
old password:
new password:
retype new password:
spawn slogin localhost -l gcr
Password:
Last login: Sun Oct 10 12:12:55 2010 from guajome-dome
passwd
Sun Microsystems Inc. SunOS 5.11 snv_111b November 2008
You have new mail.
gcr@Guajome-Dome:~$ passwd
passwd: Changing password for gcr
Enter existing login password: (I typed in existing passwd for gcr)
passwd: Sorry, wrong passwd
Permission denied