Linux password/group file checkers

by nixcraft on December 21, 2005 · 0 comments

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

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

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 4 + 7 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: