Check the UNIX passwd file for errors

Errors in the /etc/passwd file can cause many problems including the inability to login as root. The pwck command is a quick way to test the file and should be run whenever you make manual edits.


As superuser, run:

pwck

If no output is generated, the /etc/passwd file is in good shape. Any output from this command is typically self-explanatory.

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

Leave a Reply

You may also like-

Check the UNIX group database for errorsUNIX systems store user group information in the /etc/group file. Errors in this file can cause a variety of problems. To check the /etc/group ...