But, as a System Administrator for hunderds of Macs, doing it automatically is better. So: a quick guide for JAMF Pro.
Could be useful for others:
Find Empty Root
Create an extension attribute that looks for users with empty root passwords. (Source)
#!/bin/bash RESULT=$(sudo dscl . -read /Users/root Password) if [[ $RESULT == "Password: ********" ]]; then echo "<result>haspassword</result>" elif [[ $RESULT == "Password: *" ]]; then echo "<result>nopassword set</result>" else echo "<result>unknown</result>" fi
Scope all vulnerable devices
Create a Smart group that targets devices with nopassword or Unknown + High Sierra