I have an OpsWare task, that changes root passwords on a massive number of servers, by replacing the root's password hash in
I need a script of some sort, which preferably runs using, again, OpsWare but I do not want to compare the hashes. I want it to run some sort of an
login) command and input the actual password string. The reason I want to do it this way is, in the past, I have had hashes created by someone else, which did not encrypt correctly and denied root login on a large number of servers.
I am looking for ideas that I can implement.
expect comes to mind but since it is not a standard utility in our enterprise, it needs to be installed and removed right after testing, which is not a "fast" solution.
Idea suggestions are appreciated.