102-500 practice question 9 of 30
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?
Full set: 233 questionsOn modern Linux systems that use a shadow password suite for enhanced security, the encrypted password hash is stored in the /etc/shadow file, which is readable only by the root user. To indicate this, the password field in the world-readable /etc/passwd file contains a single lowercase 'x' character as a placeholder. This signifies that the authentication system must look up the actual password hash in the /etc/shadow file for the corresponding user account.
A: An asterisk () in the password field typically indicates that the account is locked and no password can be used to log in. B: A hyphen (-) is not a standard character used for this purpose in the password field. C: The letter 's' has no standard meaning in the password field of /etc/passwd.
- The Linux man-pages project. passwd(5) manual page. "If the password field contains some character, for instance an 'x', the encrypted password is in the /etc/shadow file."
- The Linux man-pages project. shadow(5) manual page. "shadow contains the encrypted password for a user account... and is pointed to by a user's /etc/passwd entry."
- Kerrisk, M. (2010). The Linux Programming Interface. No Starch Press. Chapter 8, "Users and Groups", Section 8.2, "The Password File: /etc/passwd".
Keep practicing
Take the free 102-500 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 102-500 practice questions
- Question 1What output is produced by the following command sequence? echo ‘1 2 3 4 5 6’ | while rea…
- Question 2Which command will set the local machine's timezone to UTC?
- Question 3Which of the following SQL statements will select the fields name and address from the co…
- Question 4Which of the following commands can remove a user from a group?
- Question 5Where are user specific crontabs stored?
- Question 6Which of the following crontab entries will execute myscript at 30 minutes past every hou…
