Solaris - If Your Password File Isn't Accurate, Check It With pwck (Solaris 8/9)


Solaris has a command to check the accuracy of your password file. You can use the pwck command to read /etc/passwd to verify that you've got the right number of fields for each entry in the file. It also:


  • Validates what you've put in the username, UID, and GID fields of /etc/passwd
  • Checks if your home directory exists
  • Makes sure the default shell noted in /etc/passwd is valid

Go back