Linux password/group file checkers

by on December 21, 2005 · 0 comments· Last updated December 21, 2005

In old (good ?) Sun Solaris days, we use to test /etc/passwd file integrity with pwck command. pwck scans the password file and notes any inconsistencies. The checks include validation of the number of fields, login name, user ID, group ID, and whether the login directory and the program-to-use-as-shell exist.

Check integrity of group file /etc/group with the command:

grpck

Check integrity of password file /etc/passwd and /etc/shadow with the command:

pwck

These are very handy utility in case of problem. Read man page of pwck and grpck



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 5 + 6 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: