Its always better to keep an spare admin user account to log into your computer or PC, right? Its purpose is to provide you with an admin user account that is immaculate and is very helpful when you’re having trouble .For example, here let’s talk about Mac- when you try to log into your Mac and it repeatedly freezes up, and you’ve already tried reseting functions.Or, even worse when you can’t log in at all instead, you see a pop-up message that says “unable to log in to the user account at this time”.Unfortunately, even though creating a spare admin account is easy, many of us prolong until it’s too late.
Actually, it’s never too late. If for some reason you find yourself locked out of your Mac, either because you forget your account password or some other reason, it is possible to create a brand new admin account with a new user ID and .Once you have administrative access to your Mac, you can reset your old forgotten password and then log out and log back in with your regular account.
This method is advantageous when it comes to ease, but also has a few drawbacks:
• It won’t work if you have encrypted your Mac’s drive using FileVault,
• It won’t work if you have set up a firmware password that you have forgotten.
So now let’s see how to create a new admin account by performing few steps as mentioned below:
Creating an Admin Account in Single User Mode
Start by turning off your Mac. If you’re not able to shut down normally, press and hold the power switch.
Once your Mac shuts down, you’re going to restart it in a special startup environment called Single User mode, which boots your Mac into a Terminal-like interface where you can run commands directly from a prompt.
1. To boot to Single User mode, start your Mac holding down the command + S keys.
2.Your Mac will display scrolling lines of text as it boots up. Once the scrolling stops, you’ll see a command prompt in the form of a ” :/ root# ” . The ” :/ root# ” is the command line prompt.
3.At this point, your Mac is running, but the startup drive hasn’t mounted. You need to mount the startup drive, so you can access the files that are located on it. To do this, at the prompt, type or copy/paste the following text:
/sbin/mount -uw /
Press enter or return on your keyboard.Your startup drive is now mounted; you can access its files and folders from the command prompt.
4.We’re going to force OS X to think that when you restart your Mac, it’s the very first time you’ve booted into the currently installed version of OS X. This will make your Mac behave the way it did the first time you turned it on, when it guided you through the process of creating an administrator user account.This process will not remove or alter any of your existing system or user data; it will just allow you to create one new admin user account.
5.To restart your Mac in this special mode, we need to remove one file that tells the OS whether the one-time setup process has already been performed. Type or copy/paste the following text at the prompt:
Press enter or return.
6.With the apple set-up-done file removed, the next time you restart your Mac, you will be guided through the process of creating the necessary admin account. Reboot.
7.Press enter or return.
8.Your Mac will restart and display the Welcome to Mac screen. Follow the step-by-step guide to create your new admin user account. Once you finish creating the account, your Mac will log you in with the new account.
So even if you can’t Access to any of your User Accounts you can still create a New Admin Account!!