Re: sync root passwords?
Quoting Rich Puhek <rpuhek@etnsystems.com>:
> Hopefully, you're using ssh on all your machines. If so (and if you're
> set up to use public keys for authentication, instead of passwords) you
> could do something like:
>
> #/bin/sh
>
> servers="server1 server2 server3 server4";
>
> for server in $servers; do
> ssh $server passwd root $1;
> done;
>
> which would ssh into every server in the list $servers, and change the
> root password to the given arguement.
Hi,
I'm not sure if I understand the passwd command properly.
What is the purpose of the $1 in the above script?
I have run this script but every server I login to, the passwd command
gets run, and I'm prompted to issue the new password, and then re-type it.
I pretty sure I'm lost on what supposed to be happening.
I would appreciate some guidence. :)
Thanks!
Mike
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
Reply to: