automated password change for a non-root user

From: Christopher L. Barnard (cbar44@tsg.cbot.com)
Date: Fri Jan 30 2004 - 14:38:43 EST


I need to come up with a method of changing the password on several
hundred machines for a single (non-root) user. I have a central host that
can reach all of these boxes, but doing an
"ssh remotehost -l remoteuser passwd" does not work since passwd is
interactive.

I am assuming that the existing password for this account is known and
is the same on all machines. I have created something like this before
using expect, but that relied on the prompt to tell when logged in. I
cannot rely on that this time since the prompt can be different on different
machines.

These are usually local accounts, but there are the occasional NIS maps
that have the account.

Can anyone come up with ideas on how this can be done? Right now the password
is manually changed on each machine, and it needless to say takes a loooooong
time.

TIA and I will summarize.

+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard@tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:56 EDT