MacOS – Adding a new administrator account without password

administratormacospermissionterminal

This has been answered repeatedly, but I keep running into a problem. I am trying to add a new administrator account to my computer via the single-user mode in the terminal.

The /sbin/mount -uw / command works fine. However, whenever I type in rm /var/db/.applesetupdone, it gives me an override prompt. I have typed in 'yes', 'y', and 'override'. 'Yes' and 'y' both give me this message: rm: /var/db/.applesetupdone: Permission denied. 'Override' does nothing.

Can someone help me with this?

Best Answer

I think you're missing a step, namely the /sbin/fsck -fy command. After logging into Single-User Mode, enter the following commands in the order listed:

  1. /sbin/fsck -fy

  2. /sbin/mount -uw /

  3. rm /var/db/.AppleSetupDone

This should negate the need to override.