What information is typically stored in the /etc/passwd file on a Unix-like system?

Enhance your cyber defense skills with the Security Blue Team Level 1 Test. Prepare with flashcards, multiple choice questions, and detailed explanations to ace your exam!

Multiple Choice

What information is typically stored in the /etc/passwd file on a Unix-like system?

Explanation:
The information in /etc/passwd represents user account records used by the system to identify users and provide their working environment. Each entry lists the username, UID (user ID), GID (group ID), and the user’s home directory and login shell, which the system uses to start the user’s session and determine their default environment. Historically this file also contained the encrypted password, but for security it’s now common for the actual password hashes to live in /etc/shadow, while /etc/passwd keeps a placeholder. This separation helps keep the file world-readable while protecting password data. System logs and installed package information live in other places (such as /var/log for logs and package manager databases) and are not part of the user account metadata found in /etc/passwd.

The information in /etc/passwd represents user account records used by the system to identify users and provide their working environment. Each entry lists the username, UID (user ID), GID (group ID), and the user’s home directory and login shell, which the system uses to start the user’s session and determine their default environment. Historically this file also contained the encrypted password, but for security it’s now common for the actual password hashes to live in /etc/shadow, while /etc/passwd keeps a placeholder. This separation helps keep the file world-readable while protecting password data. System logs and installed package information live in other places (such as /var/log for logs and package manager databases) and are not part of the user account metadata found in /etc/passwd.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy