O'Reilly logo

Solaris™ Operating Environment Boot Camp by Dominic Butler, David Rhodes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required