31. What information is stored in /etc/passwd? (Choose THREE correct answers.)

Answer: B,C,E

Explanation:

The numerical user ID, the username, and the user's default shell are stored in /etc/passwd.

The /etc/passwd file contains essential information about each user account on the system, including the numerical user ID, the username, and the user's default shell.

A) The user's storage space limit

This option is incorrect because the /etc/passwd file does not store information about a user's storage space limit. Such limits are typically managed via other system configurations, often found in the /etc/security or /etc/fstab files.

B) The numerical user ID

This option is correct as the /etc/passwd file includes the numerical user ID (UID) for each user. This ID is crucial for system processes to manage user permissions and ownership of files.

C) The username

This option is also correct because the username is a fundamental component of the /etc/passwd file. It serves as the human-readable identifier for user accounts on the system.

D) The encrypted password

This option is incorrect. While /etc/passwd used to store encrypted passwords, modern systems typically store passwords in a separate file, such as /etc/shadow, to enhance security.

E) The user's default shell

This option is correct because the /etc/passwd file specifies the user's default shell, which is the command-line interface that is launched when the user logs in.

Conclusion

The correct answers, B, C, and E, directly reflect the information stored in the /etc/passwd file, highlighting its role in user account management. Options A and D are incorrect because they either pertain to different configuration files or are no longer stored in /etc/passwd. This underscores the importance of understanding the specific contents and functions of system files for effective system administration.