Masspass

From Mage
Jump to: navigation, search

Save this script. In the same directory, create a file called "meh" and put the new root password in it, create a file called "rmeh" and put the current root password in it, and create a file called "serverList" that contains a list of all the target servers you want changed.

This can only be run from a server with Expect installed.

Our git repo has finally been setup so scripts are no longer stored directly on Wiki pages. You can always view the latest version here. This script is currently very rough.

Get and run Masspass

wget https://psi.cynicaloptimist.me/Caffarius/Masspass/raw/branch/master/mp.sh
chmod 700 mp.sh
vi mp.sh
echo "server1.localdomain
server2.localdomain" > serverList
vi meh
vi rmeh
chmod 400 meh rmeh
./mp.sh