Skip to content

Instantly share code, notes, and snippets.

Created August 9, 2018 16:07
What would you like to do?
Enable Remote Login for Administrators group - macOS
if sudo systemsetup -getremotelogin | grep -q Off; then
sudo systemsetup -setremotelogin on;
if ! dseditgroup &> /dev/null ; then
dseditgroup -o create -q;
sudo dseditgroup -o edit -a admin -t group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment