Mac OS X 10.2.5: Unable to Log In After Deleting NIS Server Entry

You may not be able to log in after you delete an NIS server entry in the Directory Access application.
Symptom

Mac OS X startup stalls at the message "Waiting for Network Information Service", or Login Window will not accept any local or network user name and password combinations.


Solution

This occurs because incomplete information remains in the NIS pane of the Directory Access application. When deleting information from this pane, be sure to delete it all. Note that adding an NIS server entry in Directory Access may insert one or more blank lines after the NIS server address. Note the position of the cursor in Figure 1.




Figure 1 NIS pane of Directory Services

If you remove the server address without removing the blank line(s), then Login Window will be unable to authenticate local or network accounts. If you remove the server address without removing the domain name, the startup process will stop responding at the "Waiting for Network Information Service" message.

To avoid this problem, be sure to select and delete all blank line(s) in the field in addition to the NIS server IP address and domain name.

After encountering this problem, you may resolve it by logging in as root at the client computer and removing any blank lines from the NIS configuration in the Directory Access application. This solution will only work if the root account is currently enabled on the client. For more information, including how to log in as root, see technical document 106290, "Mac OS X: About the root User and How to Enable It".

If the root account is not enabled, or you cannot reach the login window, you may use the following steps to recover. In these steps, you will type a series of text commands. Each command below is preceded by the pound sign (#). After each command, press the Return key to execute it.

Warning: Misuse of the "rm" command may result in severe data loss. If you are not comfortable performing these steps, seek assistance before continuing. Even if you cannot log in to the computer, you may wish to back up data before continuing (by using Target Disk Mode, for example, or other methods).

Steps to recover:

The computer will restart normally, and you can log in using a local account.
Published Date: Oct 7, 2016