Check the UNIX passwd file for errors

Posted September 4, 2003 by Quinn McHenry in UNIX

Last Updated on

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:


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