how can I make a new administrator account ?

I have deleted my administrator accoun by a mistake ..

I can't update or download any of my apps ..



How can I get a new one ??

HELP PLZ 😟

MacBook Pro with Retina display, Mac OS X (10.7.5)

Posted on Nov 14, 2013 9:26 PM

Reply
4 replies

Nov 14, 2013 9:38 PM in response to makhloof

How many users do you see in the sidebar after opening System Preferences > Users & Groups?


One option is to start up by holding down Command and S keys, and type this command:


rm /var/db/.AppleSetupDone


Then, type:


reboot


You will see Setup Assistant the next time your Mac restarts, so follow its steps to set up Mac OS X again. You will be able to create a new administrator user account and you will keep the other account

Nov 14, 2013 10:20 PM in response to makhloof

Please take these steps to restore administrator privileges to your account. This somewhat tedious procedure is only necessary if you've confirmed that no adminstrator account exists on the system.

Step 1

Boot into Recovery mode. The OS X Utilities screen will appear.

Step 2

Take this step only if you use FileVault 2. Launch Disk Utility, then select the icon of the FileVault boot volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click theUnlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main screen.

Step 3

Select

Utilities Terminal

from the menu bar. In the window that opens, type this:

res

Press the tab key. The partial command you typed will automatically be completed to this:

resetpassword

Press return. A Reset Password window opens. Select your boot volume if not already selected. Pull down the menu labeled Select the user account and select

System Administrator (root)

Follow the prompts to set a password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.

Select

Restart

from the menu bar.


Step 4

This step, like Step 2, applies only if you use FileVault. Log in as usual, then log out, but don't restart.


Step 5

At the login screen, click Other... Enter "root" (without the quotes) in the Name field, and enter the password you set in Step 3 in the Password field. You should now be logged in. Do nothing while logged in as root except as indicated below.



Open the Users & Groups preference pane. Select your usual administrator account in the list of users and check the box marked

Allow user to administer this computer

You'll be prompted to restart. Do that and log in as usual.

Step 6 (optional, but recommended)

Follow the instructions in this support article under the heading "Disable the root user." You must authenticate in Directory Utility as "root" with the password you set in Step 3. Authenticating as another administrator won't work.


Credit for this idea to ASC member wessongroup.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how can I make a new administrator account ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.