Category: macOS

macOS Big Sur Breaks Scripts

macOS Big Sur broke a couple of my scripts. After some troubleshooting, here is what I have found so far. Adding Certificates to a Keychain Using Keychain Access Certificate trust changes now require administrator approval and password confirmation for non-admin trust domains. If you have scripts calling /usr/bin/security add-trusted-cert -d as root, or using the SecTrustSettingsSetTrustSettings API, you will need…

Read More »

Can’t delete a macOS user with dscl [resolution]

Performing a process on more than a couple of dozen macOS (various versions 10.15.x) without issue and then presented with a couple of macOS laptops that would not allow for the deletion of the user. A very ugly error will appear that reads eDSPermissionError which implies that there is a permissions problem.  As the root administrator to the laptop, this…

Read More »

macOS: Useful Commands

The intent of this page is a quick reference of some interesting and useful commands.  The following commands had been tested against macOS versions 11.5.2+ . Serial Number ioreg -rd1 -c IOPlatformExpertDevice | awk -F'”‘ ‘/IOPlatformSerialNumber/{print $4}’ Model Number sysctl -n hw.model | cut -d “,” -f 1 | tr -d ‘[0-9]_’ Current logged On User ls -l /dev/console |…

Read More »