Thursday, May 16, 2024
HomeUNIXCheck the UNIX passwd file for errors

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.

Quinn McHenry
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.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

LATEST REVIEWS

Recent Comments

error: Content is protected !!