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

Lost admin privileges on account

hello,


i created had a new ssd and installed Yosemite fresh a few weeks ago. I have not migrated anything yet, installed little snitch, was having a issue with redirect virus on old HD. I installed onyx also never had any issues with it either. After a reboot tho shortly after I ran onyx(although few other things were run and updated) I relogged in and my admin was no longer admin... So...


here is what I tried



Directory utility and and add admin acct back to the admin group did not work not sufficient privileges

tried to readd by terminal again didn't work (adding Sudo requested admin password tried root pw and all other account pw)

boot oot to single user mode... Doesn't work freezes up on start up


boot to repair worked disk utility was run attempted to use terminal to add my admin back to again nothing

reinstalled os was not clean install tho...after that I tried to u mark setup asst but the file is not there


rretried above items after install..


so I am not sure what else I should do... I think a clean install I am dreading but thinking might need to... Although my terminal skills are ok, I don't know commands very well and mainly just follow online instructions, but I am a pt programmer so understand and can work a bit on my own to find an answer but I am out of ideas... Particularly with single user not working also

MacBook Pro (15-inch Mid 2009), OS X Yosemite (10.10.4)

Posted on Jul 22, 2015 5:44 PM

Reply
Question marked as Best reply

Posted on Jul 22, 2015 5:52 PM

Not sure which of these will be better for you:


From Standard to Administrator - Hack Mac

How To Create A New Administrator Account - Hack Mac


Also, see:


How to Create a New User Account if You Cannot Access Your Admin Account


Reboot the computer. At the chime press and hold down the COMMAND-S keys to start into Single-user Mode.


You will boot to a black screen with scrolling white text, release the keys and wait for it finish.


Enter the following lines at the command prompt pressing RETURN after each:


mount -uw /

rm /var/db/.applesetupdone

reboot


After you reboot the computer you will be taken to the Setup Assistant. When you get to the point where you are asked to setup your new user account, create a new admin account. Be sure to name this user account something different than the admin user account that already exists on the system. When you finish the Setup Assistant, it will automatically log you into the new account.


You can transfer your files from the old account to the new one. See: Transferring files from one User Account to another. Once you have moved all your files into your new account, you can delete the old account using Accounts or Users & Groups preferences.

4 replies
Question marked as Best reply

Jul 22, 2015 5:52 PM in response to bentleyonthego

Not sure which of these will be better for you:


From Standard to Administrator - Hack Mac

How To Create A New Administrator Account - Hack Mac


Also, see:


How to Create a New User Account if You Cannot Access Your Admin Account


Reboot the computer. At the chime press and hold down the COMMAND-S keys to start into Single-user Mode.


You will boot to a black screen with scrolling white text, release the keys and wait for it finish.


Enter the following lines at the command prompt pressing RETURN after each:


mount -uw /

rm /var/db/.applesetupdone

reboot


After you reboot the computer you will be taken to the Setup Assistant. When you get to the point where you are asked to setup your new user account, create a new admin account. Be sure to name this user account something different than the admin user account that already exists on the system. When you finish the Setup Assistant, it will automatically log you into the new account.


You can transfer your files from the old account to the new one. See: Transferring files from one User Account to another. Once you have moved all your files into your new account, you can delete the old account using Accounts or Users & Groups preferences.

Jul 22, 2015 5:52 PM in response to bentleyonthego

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.

Lost admin privileges on account

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