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: https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line

what’s keeping my Mac awake

pmset -g assertions link: https://www.macworld.com/article/1168151/find-out-whats-keeping-your-mac-awake.html 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 https://www.dssw.co.uk/reference/pmset.html     link here:https://gist.github.com/pwnsdx/2ae98341e7e5e64d32b734b871614915 https://gist.github.com/pwnsdx/2ae98341e7e5e64d32b734b871614915