Shadow File

Like the password file, the shadow file is an ASCII file with the fields separated by a colon (:). It is named /etc/shadow and is used to store security-related details, such as encrypted passwords and password aging information. For this reason, it is designed not to be readable by the general public.

The shadow file, as distributed, will look similar to that shown here:

hydrogen# cat /etc/shadow
root:<encrypted root password>:6445::::::
daemon:NP:6445::::::
bin:NP:6445::::::
sys:NP:6445::::::
adm:NP:6445::::::
lp:NP:6445::::::
smtp:NP:6445::::::
uucp:NP:6445::::::
nuucp:NP:6445::::::
listen:*LK*:::::::
nobody:NP:6445::::::
noaccess:NP:6445::::::
nobody4:NP:6445::::::
hydrogen#

This example shows that for every entry in the password ...

Get Solaris™ Operating Environment Boot Camp now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.