So I went for an interview and one of the panel grilling me asked where, under *nix, is your encrypted password stored? I new /etc/passwd contained seven fields of detail for each user account, but I couldn’t remember where the encrypted passwords were stored! The answer is /etc/shadow (- r w – r – – – – – -).
The seven fields in the /etc/passwd file are separated with colons:
- User name
- User ID
- Group ID
- User ID Infor
- Home Directory
- command shell path
In the /etc/shadow file, the first character is a ! if the account is locked
Check this link for Solaris root password recovery.