tinyapps.org / docs / Preparing a Mac for resale or donation (Sierra edition)


  1. Deauthorize Mac in iTunes, turn off Find My Mac (if this step is missed reset NVRAM to disable Find My Mac), sign out of iCloud, and sign out of iMessage.
  2. Securely erase internal storage, install macOS, create temporary admin account (e.g., tempuser), install apps and updates, etc.
  3. Log in normally as tempuser and run:
    sudo dscl . -delete /Groups/admin GroupMembership tempuser
    sudo dscl . -delete /Users/tempuser (no trailing forward slash after tempuser; otherwise "delete: Invalid Path" error returned)
  4. Restart in Single User Mode (Cmd+S) and run:
    fsck -fy
    mount -uw /
    rm -R /Users/tempuser
    rm /var/db/.AppleSetupDone
    shutdown -h now

Sources

Regarding iLife and iWork apps


created: 2017.02.18, updated: 2017.04.20