Changing my administrator user's username has removed privileges [duplicate]

Solution 1:

If it's not already, make sure your Mac mini has an up-to-date backup.

Then follow these steps:

  1. Shut down your Mac mini
  2. Power up your Mac mini and immediately press and hold the command + S keys
  3. Keep the keys down until you see text on the screen
  4. Now enter the following command:

    /sbin/fsck -fy

    and press enter

  5. Next enter the following command:

    /sbin/mount -uw /

    and press enter

  6. Now enter the following command:

    rm /var/db/.AppleSetupDone

    and press enter

  7. Finally, enter the reboot command

    and press enter

Your Mac mini should reboot and you can log in normally, after which point the Setup Assistant will launch. Now you need to create a new admin user. Don't worry, your other user accounts should be intact. NOTE: You should choose a new user name for this admin account.

Once you're back up and running you can go to Apple > System Preferences > Users & Groups and select the Allow user to administer this computer checkbox for the 'grant' user.