macOS Server Account Lockout Policy Enforcement

In light of macOS Server removing the Account Lockout Policy Enforcement feature from the GUI, one can still apply this enforcement by way of terminal command on the Open Directory Server itself. For Example: Set LDAP Account Policy Enforcement: pwpolicy -a <<diradmin>> -p <<password>> -u <<username to unlock> -setpolicy "maxFailedLoginAttempts=1" ** This sets 5 password … Continue reading macOS Server Account Lockout Policy Enforcement

Global Launch Daemons launchd

Save the file here: /Library/LaunchDaemons/examplelaunchd.plist set root permission: sudo chown root /Library/LaunchDaemons/examplelaunchd.plist sudo launchctl load -w /Library/LaunchDaemons/examplelaunchd.plist You can stop the service using the unload subcommand. sudo launchctl unload /Library/LaunchDaemons/examplelaunchd.plist sudo launchctl list Link:

what’s keeping my Mac awake

pmset -g assertions link: If you are looking for the nuclear option like I was: sudo systemsetup -setcomputersleep Never Schedules a repeating wake or power on event every tuesday at 12:00 noon, and a repeating sleep event every night at 8:00 PM. pmset repeat wakeorpoweron T 06:00:00     link here: