Where are user passwords for encryption stored in a Linux system?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

In a Linux system, user passwords for encryption are stored in the /etc/shadow file. This file contains the hashed passwords of the users along with additional information related to password management, such as password expiration and account status.

Storing the hashed passwords in /etc/shadow instead of /etc/passwd significantly enhances security. While /etc/passwd is accessible by all users and contains user account details such as usernames and user IDs, it does not contain password hashes. Instead, it contains a placeholder character (usually an 'x') in the password field for users that have their password stored in /etc/shadow, which is only accessible by the root user. This separation helps protect sensitive password information from unauthorized access.

The other options provided do not serve this purpose: /var/log/auth.log is a logfile that records authentication attempts and security events, while /usr/local/etc is typically used for configuration files and does not store user passwords.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy