Interesting issue with root account
Hi All.
I have a clean install of Lion Server running, and I was able to enable the root account, set a password and then after I was finished, disable the account.
Now it seems to be in a state - that the next time I want to use the root account, I can enable it, but I cannot authenticate at all.
Directory Utility gives me what appears to be a complete password change process - but not notification that its failed.
sudo passwd root returns the following error.
passwd: Could not verify credentials because directory server does not support the requested authentication method. Could not verify credentials because directory server does not support the requested authentication method.
Testing to see if the directory is having issues, I reset a password via Workgroup Manager without any issues. I also confirmed that Open Directory is configured to accept all authentication types.
Using the following also worked
Open Directory Account: sudo passwd abc
Local Standard Account: sudo password xyz
The main reason I enabled the root account is because I can then ssh in using root and via sftp open / view config files - in particular fstab and edit via a GUI rather then via vi, vim or nano.
On my server - the accounts are setup as follows in Dir Util.
xyz has the following under AuthenticationAuthority
;ShadowHash;HASHLIST:<SALTED-SHA512,SMB-NT,CRAM-MD5,RECOVERABLE>
;Kerberosv5;;root@LKDC:SHA1.<SNIP>
Administrator has the following under AuthenticationAuthority
;ShadowHash;HASHLIST:<SALTED-SHA512,SMB-NT,CRAM-MD5,RECOVERABLE>
;Kerberosv5;;root@LKDC:SHA1.<SNIP>
root has the following under AuthenticationAuthority
;Kerberosv5;;root@LKDC:SHA1.<SNIP>
In all instances the Kerberos value is identical.
On my laptop root has the following under AuthenticationAuthority (SL Upgrade)
;ShadowHash;HASHLIST:<SALTED-SHA512>
I am taking a wild guess here, that the passwd / dirutil password change only works on Shadow Hash's and not Kerberos records.
Now knowing that OD does link in with Kerberos I was going to try and update pull up the local record in WGM, except it can't show hidden records any more - telling me to use Directory Utility.
Any ideas?
Mac mini, Mac OS X (10.7), Server