Power up your Mac and immediately press and hold thecommand+Skeys
Keep the keys down until you see text on the screen
Now enter the following command:
/sbin/fsck -fy
and pressenter
Next enter the following command:
/sbin/mount -uw /
and pressenter
Now enter the following command:
rm /var/db/.AppleSetupDone
and pressenter
Finally, enter therebootcommand
and pressenter
Your Mac 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 accountsshouldbe 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 theAllow user to administer this computercheckbox for the 'grant' user.
Muitos anos depois e as dicas do andersondn ainda funcionam.. tentei várias vezes mas por um erro de espaço não ia de jeito nenhum. Após corrigir o erro (não há espaço entre / e .AppleSetupDone) deu tudo certo! Obrigado!!!
Perdi acesso administrador -- Mudei o nome do usuário
em macOS
Postado
Muitos anos depois e as dicas do andersondn ainda funcionam.. tentei várias vezes mas por um erro de espaço não ia de jeito nenhum. Após corrigir o erro (não há espaço entre / e .AppleSetupDone) deu tudo certo! Obrigado!!!