Linux password/group file checkers
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
E-mail this to a Friend
Printable Version
Is your site working? Monitor Your Web Site 24/7. Get SMS alerts on server downtime. Free 30-day trial including 20 SMS!
You may also be interested in other helpful articles:
- Debugging Book: The Art of Debugging with GDB, DDD, and Eclipse
- Exporting Networked File Systems Via Another Networked File System
- HP-UX: Understanding device file naming convention
- Linux File System Limitations For High Performance Computing
- Linux File System Guide (primer) from Novell
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!


Recent Comments
Today ~ 7 Comments
Today ~ 21 Comments
Today ~ 1 Comment
Today ~ 10 Comments
Today ~ 7 Comments