This file contains hidden or 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 | |
LOCALADMIN="username" | |
kickstart=/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart | |
echo "Configuring Remote Management" | |
if id -u $LOCALADMIN >/dev/null 2>&1; then | |
echo "Defined local admin account exists" | |
# Deactivate ARD agent, deny all access | |
echo "Deactivating ARD agent" |
This file contains hidden or 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 creates a user account under Mac OS X | |
# === Typically, this is all you need to edit === | |
USERNAME= | |
FULLNAME= | |
PASSWORD= | |
# A list of (secondary) groups the user should belong to |
This file contains hidden or 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 | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 [enable|disable]" | |
exit 1 | |
fi | |
plistLoc="/private/var/root/Library/Preferences/com.apple.CoreBrightness.plist" | |
currentUserUID=$(dscl . -read /Users/$(whoami)/ GeneratedUID) # Get the GeneratedUID for the current user |