Mac users know that the account they create when setting up their new Mac Book is known as an administrative account. This is the account that allows you to configure the system and install applications.

Albeit rare, but sometimes you may not be able to login to your admin account due to various reasons. You can try resetting the PRAM or the SMC to address this issue, but if it doesn’t work then the only option is to create a brand new administrator account with a new user ID and password. Luckily, doing that isn’t a big deal and here are the steps that you need to follow.

Creating an Admin Account in Single User Mode:

1. The first thing you need to do is to shut down your Mac. If you are unable to do so, you need to press and hold the power switch.

2. Once powered off, you will need to restart it in a special start-up environment called Single User mode, which boots your Mac into a Terminal-like interface where you can run commands directly from a prompt. To do that, start your Mac whilst holding the Command + S keys.

3. You will see some scrolling and then you’ll see a command prompt in the form of a “:/ root#.

4. At the command prompt, run the following command to make the filesystem writable. /sbin/mount –uw/. Press the Enter key so you can return to the keyboard.

5. This command makes the start-up drive active and hence letting you access the files and folders from the command prompt.

6. Now you will need to make the Mac believe (upon restart) that it is the first time that someone is booting into the currently installed version of OS X. This will allow you to create a new administrative account as Mac would think that someone has just opened a new Mac and it will also help you set up the administrative account.

7. Now to make Mac believe that you will need to restart it in a special mode and for that, you will need to remove one file that tells the OS whether the one-time setup process has already been performed. You will take help from the following command to achieve that feat. rm /var/db/.applesetupdone

8. Press the Enter key after typing in that command. Now the applesetupdone has been removed from the device and upon restart, it will start from the setup screen where you will create the new admin account.

9. Key in the command Reboot and press Enter.

10. Your Mac will restart and display the Welcome to Mac screen. Now all you need to do is to follow the onscreen instructions and create the new admin account. It is similar to setting up the Mac book when you 1st bought it. Once the account is created, log-in with the new account and do whatever troubleshooting you need to do.

Reading these steps will make you think that creating a new admin account is an uphill task. In reality, it is not that difficult but sure is time-consuming and frustrating. As said earlier, it is not often that your Mac will have an issue that will not let you log-in, but when it happens it is quite frustrating. All you need to do is to read these steps carefully, grasp them and apply them properly to avoid any trouble.

Additional Tip:

For the additional tip part, it is recommended that Mac users should create a spare admin account on their device. The main benefit of this account is that it will come handy when you’re having trouble with your Mac’ main admin account. You will be able to log-in using this account which will then help you sort out the issue that is preventing you from logging in.

Creating a spare admin account is a pretty straightforward process. However, many Mac procrastinate and show complacency until it’s too late. A spare admin account is just like the admin account but it hasn’t had any changes to its preference files and doesn’t contain any data beyond what OS X adds when the account is created. So, this is one easy alternative to avoid such a long process that you have read above.