So I tried deleting an app a few days ago and it requires admin name and password. I tried every single combination that i can think of and it wouldnt work. I then realize that I have a standard user instead of an admin. I tried the create a new admin user way but the permission is denied. I got no idea how to proceed onwards. Help needed please. Its a osx yosemite 10.10.5
-
The first user you set up should be admin. Did you forget the password? You might be able to recover it. Have you set up a Firmware Password? If you don't know what that is, chances are you haven't, but I know someone who couldn't get into the admin account because he forgot the password and a computer "expert" set a Firmware Password.– Arc676Dec 27, 2015 at 8:49
2 Answers
To create a new admin user, you need to reboot into Single User mode once:
- Boot to single user mode (⌘-S while powering on)
- Run
/sbin/fsck -fy
- Run
/sbin/mount -uw /
- Run
rm /var/db/.AppleSetupDone
- Run
reboot
After the reboot, the Setup Assistant should get displayed again (as for a new Mac) and prompt you to create a new user. This user will automatically have admin rights.
-
Creating a new user may be undesired as all the information the OP has may be in the first user. There is no real need to go through the process of copying all your information into a new user just for this dilemma. An easier fix may be the solution I posted as an answer here, which does exactly what the OP wants without altering anything else on their system.– PhoenixDec 27, 2015 at 10:40
-
1There is no need to copy anything. Once a new admin user is created, any user account can be changed into an admin account by this new user– nohillside ♦Dec 27, 2015 at 14:44
I have seen that in rare occasions an admin account has been degraded to a standard user.
Under normal conditions, there is a fairly easy fix on getting it back to admin status.
Here is how:
- At startup, hold down Alt
- Select "Recovery HD"
- Once presented with the choice of options, choose menu "Utilities", then "Terminal"
- Type in
resetpassword
Enter - In the resulting window, choose your startup volume (typically it is "Macintosh HD")
- Select "System Administrator (root)" from the dropdown underneath
- Give it a password in the fields below and click "Save"
- Restart your system (menu "")
- When logging in, choose "Other"
- Type in
root
as the user and the password you just gave it - Once in the familiar environment, open "System Preferences" > "Users & Groups"
- Unlock the padlock to the lower left-hand corner
- Select your real user
- Click the option
Allow user to administer this computer
Effectively, this will get your user back to admin status. Now, just log out and log back in with your user.
NOTE:
Keep in mind that the above requires that you have access to this volume. If you use FileVault, you will need to unlock it first using Disk Utility.
For security concerns, you may want to do the following few clean-up steps as well:
- Once back with your user, open "System Preferences" > "Users & Groups" again.
- Click on
Login Options
underneath your list of users - Click on "Join" next to Network Account Server
- Click on "Open Directory Utility"
- Open the padlock here as well
- From menu "Edit", choose "Disable Root User"