Crazy Skull Guy

Q: OS X Lion - Can't login as root after disabling then reenabling

Hello,

 

I'm having a problem logging into the root account of my macbook pro running Lion 10.7.1.  I enabled the root account and everything was fine.  I logged into it a few times and made some changes unrelated to passwords etc.  Once I was done I disabled the root account.  I then had to use it again and enabled it.  Now I can't login.  I tried resetting the password using the Directory Utility and terminal but neither work. Directory Utility appears to work but doesn't and no error message is given.  Terminal gives me the following error using the sudo passwd root command:

 

Password:

Changing password for root.

New password:

Retype new password:

passwd: Could not verify credentials because directory server does not support the requested authentication method.

 

 

 

Any help would be greatly appreciated.  I need to get this password reset and Apple support wasn't any help.  Thanks.

MacBook Pro, Mac OS X (10.7.1)

Posted on Sep 1, 2011 7:11 AM

Close

Q: OS X Lion - Can't login as root after disabling then reenabling

  • All replies
  • Helpful answers

Page 1 Next
  • by Crazy Skull Guy,Solvedanswer

    Crazy Skull Guy Crazy Skull Guy Sep 1, 2011 9:47 AM in response to Crazy Skull Guy
    Level 1 (0 points)
    Sep 1, 2011 9:47 AM in response to Crazy Skull Guy

    I figured out a solution to this on my own.  For those of you that might need it do the following:

     

    1. Go to System Preferences> Users and Groups

    2. Click on "Login Options"

    3. Click the lock on the bottom left and login using your administrator login and password (should be who you are currently logged on as....this is not the root or System Administrator credentials)

    4. Click the "Join..." button.

    5. Click the "Open Directory Utility" button.

    6. Click the "Directory Editor" option in the Directory Utility window.

    7. Scroll down the left side until you see "System Administrator" and highlight it.

    8. On the right, highlight "AuthenticationAuthority" and hit the - (minus) button at the bottom to delete it.

    9. Click the "Save" button at the bottom.

    10. At the top of the screen on the Directory Utility menu click the "Edit" option and click "Enable Root User".  It will prompt you to enter a new root password again.

     

    Once you enable the root user again it will recreate the AuthenticationAuthority entry that you deleted.  Everything should be fixed now and you should be able to login as the root user again.

  • by Robert Cole2,

    Robert Cole2 Robert Cole2 Sep 9, 2011 4:26 PM in response to Crazy Skull Guy
    Level 1 (145 points)
    Sep 9, 2011 4:26 PM in response to Crazy Skull Guy

    Thank you!!!!!!!!!!

  • by Ludacris1,

    Ludacris1 Ludacris1 Sep 13, 2011 11:16 AM in response to Crazy Skull Guy
    Level 1 (0 points)
    Sep 13, 2011 11:16 AM in response to Crazy Skull Guy

    So I hit the wrong - symbol in your instructions (completely my fault, obviously) and deleted the System Administrator altogether, rather than the AuthenticationAuthority. If you notice, there is a + and - on the bottom left and also on the right hand pane, below list of items for System Administrator.

     

    I'm sort of stuck now and I'm hoping you might be able to help out.

     

    I'm not a casual user and realize what a foolish mistake this was, but, I'm stuck with it now.

     

    Any ideas? I'm not able to disable, enable or use the root and I can't change the password now. And because Lion doesn't come on a drive of any kind, I'm at a loss as to how to reinstall.

     

    Thanks in advance.

  • by Ho Lee MACkeral,

    Ho Lee MACkeral Ho Lee MACkeral Sep 21, 2011 7:43 AM in response to Crazy Skull Guy
    Level 4 (2,311 points)
    Sep 21, 2011 7:43 AM in response to Crazy Skull Guy

    Thank you for this!!

  • by znamoh,

    znamoh znamoh Sep 26, 2011 1:35 PM in response to Ludacris1
    Level 1 (0 points)
    Sep 26, 2011 1:35 PM in response to Ludacris1

    I did exactly the same thing as Ludacris1.  Is there any way to fix this, short of restoring from backup?

  • by Crazy Skull Guy,

    Crazy Skull Guy Crazy Skull Guy Sep 26, 2011 2:20 PM in response to Crazy Skull Guy
    Level 1 (0 points)
    Sep 26, 2011 2:20 PM in response to Crazy Skull Guy

    I'm not sure how to fix it if you delete the root user.  Please make sure only to delete the AuthenticationAuthority entry and not the root user.  I just assumed this was obvious.  I apologize.

  • by znamoh,

    znamoh znamoh Sep 26, 2011 3:45 PM in response to Crazy Skull Guy
    Level 1 (0 points)
    Sep 26, 2011 3:45 PM in response to Crazy Skull Guy

    Thanks for responding anyway.  I should have read all the posts before blundering ahead!  Would it be possible to edit your otherwise excellent instructions to include a warning about hitting the - (minus) button on the wrong side?

  • by Crazy Skull Guy,

    Crazy Skull Guy Crazy Skull Guy Sep 26, 2011 5:23 PM in response to Crazy Skull Guy
    Level 1 (0 points)
    Sep 26, 2011 5:23 PM in response to Crazy Skull Guy

    Unfortunately, I can't seem to find a way to edit the original post.

  • by MontanaProducts,

    MontanaProducts MontanaProducts Oct 20, 2011 9:45 PM in response to Crazy Skull Guy
    Level 1 (10 points)
    Oct 20, 2011 9:45 PM in response to Crazy Skull Guy

    We'll you got it right about how to re-establish your "root" account but you ignored the original problem.  You said it worked fine at first but when you logged out of "root" then tried to log back in it wouldn't accept the password.  What actually happens is the "root" account works until disabled.  When you enable it again the passwords will no longer work.  You have to go through the whole process as described above every time you enable the "root" account.  If you change the password in the mean time you will be asked for the old password at log-in and the new password also.  Don't forget the old password.

     

    This is not how this is supposed to work but Apple is loth to change it.  Hope this helps.

  • by cekisakurek,

    cekisakurek cekisakurek Oct 22, 2011 7:59 AM in response to Crazy Skull Guy
    Level 1 (0 points)
    Oct 22, 2011 7:59 AM in response to Crazy Skull Guy

    I did

    8. On the right, highlight "AuthenticationAuthority" and hit the - (minus) button at the bottom to delete it.

     

    but now the root user dissapeard from users. I cant disable root user and the password issue still remains.

    could anyone help please?

  • by MontanaProducts,

    MontanaProducts MontanaProducts Oct 22, 2011 12:51 PM in response to cekisakurek
    Level 1 (10 points)
    Oct 22, 2011 12:51 PM in response to cekisakurek

    Well they say a little knowledge is dangerous, but I have a little knowledge if you like danger.

     

    If you are a system administrator you can follow along.  If you arn't you need to contact someone who is.

     

    1. Open "terminal"

     

    2. type "dsenableroot" return

     

    3. enter password for system administrator "password whatever it is" return

     

    4. enter desired password for root "password desired" return

     

    5. re-enter root password for verification "password" return

     

    6. type "exit" return

     

    7. go to menu bar and "quit" terminal

     

    8. logout

     

    9. you should be at log-in screen

     

    10. double click "other"

     

    11. enter "root password whatever that is"

     

    There you have it.  Should only take less than a minute.

  • by cekisakurek,

    cekisakurek cekisakurek Oct 22, 2011 1:47 PM in response to MontanaProducts
    Level 1 (0 points)
    Oct 22, 2011 1:47 PM in response to MontanaProducts

    I tried that but I got the

    dsenableroot:: ***Failed to enable root user.

    but thanks anyways

  • by cekisakurek,

    cekisakurek cekisakurek Oct 22, 2011 3:19 PM in response to MontanaProducts
    Level 1 (0 points)
    Oct 22, 2011 3:19 PM in response to MontanaProducts

    dscl . -create /Users/root NFSHomeDirectory /var/root command brings back the root user for anyone if needed

  • by chicodaman,

    chicodaman chicodaman Oct 30, 2011 9:52 PM in response to Crazy Skull Guy
    Level 1 (15 points)
    Oct 30, 2011 9:52 PM in response to Crazy Skull Guy

    I just had this problem too and Crazy Skull Guy's solution worked. But I'm sorry to hear it breaks every time I disable root. Everybody says over and over to never leave the root user enabled, but it seems Apple has made a huge dis-incentive to disable it. Ouch.

Page 1 Next