Home UNIX Check 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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

error: Content is protected !!