Masspass
Jump to navigation
Jump to 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.cynop.me/Caffarius/masspass/raw/branch/master/masspass chmod 700 masspass vi masspass echo "server1.localdomain server2.localdomain" > serverList vi meh vi rmeh chmod 400 meh rmeh ./masspass