Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# This script runs at boot to make sure that no new admin accounts have
# been created in the interim.
# Get list of admin accounts into array
# These are the current admin users on the system who will be tested
# to see if they are on the allowed admins list.
admins=( $(dscl . -read /groups/admin | grep GroupMembership) )