Run stupid administrative tasks in parallel on multiple machines.
Use “parallel-ssh” (former “pssh”)!
Modify setting ALLOW_SSH_ROOT_USER=without-password in /etc/rkhunter.conf on multiple machines:
#!/bin/bash
cmd="perl -pi~ -e 's/ALLOW_SSH_ROOT_USER=yes/ALLOW_SSH_ROOT_USER=without-password/' /etc/rkhunter.conf"
parallel-ssh --par 1 --hosts hosts-file --user root --inline $cmd < /dev/null
We had to use --par 1, since the parallel execution of multiple ssh logins lead to some attempts being not successful. Maybe this is an issue with ssh-agent.