This section describes how to search and scan the database of registered users. The database itself is kept in the file /etc/passwd on most systems, but on some systems a special network server gives access to it.
Historically, this database included one-way hashes of user passphrases, as well as public information about each user (such as their user ID and full name). Many of the names of functions and data structures associated with this database, and the filename /etc/passwd itself, reflect this history. However, the information in this database is available to all users, and it is no longer considered safe to make passphrase hashes available to all users, so they have been moved to a “shadow” database that can only be accessed with special privileges.