Only standard accounts, can't create administrator account

Discussion in 'macOS' started by tovtov, Apr 10, 2015.

  1. tovtov macrumors newbie

    Joined:
    Feb 20, 2015
    #1
    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)
     
  2. maflynn Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    Did you try creating the account from booting up on the OS X install disc?
     
  3. tovtov, Apr 10, 2015
    Last edited: Apr 10, 2015

    tovtov thread starter macrumors newbie

    Joined:
    Feb 20, 2015
    #3
    Can you please explain?
    I am new to OS and my brother is even more clueless then me :\
     
  4. Warhaven macrumors newbie

    Joined:
    Mar 3, 2010
    #4
    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.
     

Share This Page