Skip to content

Instantly share code, notes, and snippets.

View arkku's full-sized avatar

Kimmo Kulovesi arkku

View GitHub Profile
@arkku
arkku / disable-root.sh
Last active November 30, 2017 12:01
Script to disable root account on macOS High Sierra
#!/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,