Hi getbackto,
Given that you're running High Sierra, you're in luck. You can use Single User Mode on your Mac to resolve this issue.
Single User Mode is a special startup mode on your Mac. Instead of loading the desktop, your Mac starts up to the command line with superuser (root) privileges. If you want to restrict access to this powerful startup mode, make sure FileVault is enabled on your Mac afterwards.
These steps will use a few commands to delete a special file (.AppleSetupDone) and restart your Mac. If your Mac can't find .AppleSetupDone, it assumes that you just installed macOS, and runs the Setup Assistant. From there, you can create an additional administrator account by choosing not to migrate any data.
- Restart your Mac while holding down Command-S. Release the keys when white text appears on a black screen.
- If prompted to log in, do so. (If this happens, FileVault is enabled.) The console window will return after you enter your password.
- Wait for the text to stop scrolling. Then, press Enter (Return).
- Type these commands in order, exactly as shown. Press Enter (Return) after typing each command:
- mount -uw /
- rm /var/db/.AppleSetupDone
- launchctl reboot
- Your Mac should immediately restart. If prompted to enter your password, do so to continue.
- The macOS Setup Assistant should appear. Continue until you're prompted to migrate data.
- Choose NOT to migrate data, then click Continue.
- You should now be asked to create a new administrator account. Choose a name that is different from your existing account.
- When the Setup Assistant is completed, the desktop should appear. Open System Preferences -> Users and Groups.
- Click the padlock in the bottom left corner, then authenticate with your temporary admin credentials.
- Select your real user account, then check the box next to "Allow user to administer this computer".
- Restart your Mac.
- Log in as your real user account. Your admin permissions should be restored now.
- If you want, delete the temporary account you made earlier.