Shadow files

  • To prevent users from obtaining encrypted passwords from passwd and group, shadow files are implemented.

  • Encrypted passwords are moved to a new file, which is readable only by root.

  • The shadow file for /etc/passwd is /etc/shadow.

  • The shadow file for /etc/group is /etc/gshadow.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.