Which of the following files is used to store user passwords on a Linux system that has been configured to use local authentication?
  1. /etc/sales
  2. /etc/shadow
  3. /etc/passwd
  4. /etc/local/accounts
Explanation
Answer - B - The /etc/shadow file is used to store user passwords on a Linux system that has been configured to use local authentication.

Key Takeaway: The /etc/passwd file contains the user account information for your system. The /etc/shadow file contains passwords for your user accounts. With most Linux distributions that use local authentication, user passwords will be stored in encrypted format in the /etc/shadow file. This file is linked to the /etc/passwd file we discussed previously. Each of the user accounts listed in /etc/passwd has a corresponding entry in /etc/shadow file.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz