Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tovtov

macrumors newbie
Original poster
Feb 20, 2015
6
0
Hi everyone,
I trying to fix my brother's macbook pro.
It all started when he forgot his administrator user name and password, after trying to reset the password with the OS disk, I noticed there is no administrator account besides " System Administrator (root)" (I did reset the password for the root user but it didn't do anything).
In "Accounts" all I see is standards accounts and no administrator account, so I followed a guide to create a new administrator account ( mount -uw / ---- > rm /var/db/.AppleSetupDone ----------> shutdown -h now ) and created a new user that was suppose to be an Administrator account but it didn't work, the new user I created is standard as well.
What can I do?

Thanks,
Ben.


MacBook Pro, Mac OS X (10.5.8)
 

maflynn

macrumors Haswell
May 3, 2009
73,483
43,408
Did you try creating the account from booting up on the OS X install disc?
 

tovtov

macrumors newbie
Original poster
Feb 20, 2015
6
0
Can you please explain?
I am new to OS and my brother is even more clueless then me :\
 
Last edited:

Warhaven

macrumors newbie
Mar 3, 2010
19
1
Strange. You can try the following as well:
  1. Boot into single user mode. (Command S at power on)
  2. Type: fsck -fy
  3. Type: mount -uw /
  4. Type: launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
  5. Type: diskutil repairPermissions /
  6. Wait for it to finish repairing permissions (will take several minutes).
  7. Type: dscl . -list /users
  8. Locate your brother's account (or that new account you just made). Probably his firstnamelastname jumbled together, located near the bottom of the list.
  9. Type: dscl . -append /Groups/admin GroupMembership <shortname>
    (Replacing <shortname> with the account name you got from step 8)
  10. Restart the computer by typing: shutdown -r now
  11. Log in to your brothers account, and verify that it's an admin.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.