Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Admin user changing to standard user on its own

Hi,


I have an interesting situation I'm hoping to get some help with.


On my MacBook Pro running 10.10.3 my admin account suddenly changed to a standard account. I am now left with no admin account on the computer. I was running the Mac as a server as well.


I tried deleting .AppleSetupDone file via target disk mode, which took me back to setup assistant when I rebooted the mac, I created a new account there but even that account shows as a standard user when I log in.


Any ideas?


Regards,

S

MacBook Pro (15-inch Early 2011), OS X Yosemite (10.10.3)

Posted on May 21, 2015 6:47 AM

Reply
2 replies

May 21, 2015 7:14 AM in response to AppleTechShaun

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

If you don't already have a current backup of all your data, you must back up before taking any of the steps below. Ask if you need guidance. You won't need the backup unless something goes wrong—which is always possible.

Step 1

Start up in 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 startup volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock 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:

resetp

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 startup 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. I suggest you write down the password. If you don't write it down and forget it, you'll have to start over from Step 1.

Select

Restart...

from the menu bar.

Step 4

This step, like Step 2, applies only if you use FileVault. Log in as usual, then select

Log Out...

from the menu bar, or press the key combination shift-command-Q. Don't restart. You'll be returned to the login screen.

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 as root. This is a potentially dangerous condition. Do nothing while logged in as root except as indicated below. You'll be fine as long as you don't deviate from the plan.

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 yourself—not as root. Your administrator status should now be restored.

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.

May 22, 2015 1:27 AM in response to Linc Davis

Hi Linc,


Thanks for the response.

Root account does not show in the reset password utility. I never enabled the root account on the mac via directory utility but I know it is still supposed to show in reset password. but not in this case.


I've also tried single user mode, mounting the file system with write permissions and then trying to add my user to the admin group using "dscl . append /Groups/admin GroupMembership username" but keep getting an error.


Also tried creating a new user in single user mode by starting directory services and dscl, but still getting errors.


I've managed to get a solution by configuring another mac with a new installation of Yosemite with an admin account and then I used migration assistant to transfer my problem mac's data over. Then I just re-enabled the admin privileges on my original admin account on the new mac.

Would be interesting to know what the caused the issue initially though.

thanks again for the help.

Admin user changing to standard user on its own

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