This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script will disable the root account on macOS. | |
# At the time of writing there is a severe security flaw in macOS High Sierra, | |
# which allows the root account to be used without any password to gain admin | |
# access from any of the GUI password dialogs (it will fail once the first time, | |
# but on subsequent attempts it will accept the empty password). | |
# | |
# The commonly circulated workaround is to set a password for the root account, |