How to Create a new Administrator Account

  1. Boot into Single User Mode + S.
  2. Mount the drive by typing /sbin/mount -uw / then ↩ Enter.
  3. Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ Enter.
  4. Reboot by typing reboot then ↩ Enter.
  5. Complete the setup process, creating a new admin account.

Open a terminal and type

sudo dseditgroup -o edit -d username -t user admin