CompTIA Linux+ (XK0-005) — Question 196
A systems administrator received a request to change a user's credentials. Which of the following commands will grant the request?
Answer options
- A. sudo passwd
- B. sudo userdel
- C. sudo chage
- D. sudo usermod
Correct answer: A
Explanation
The correct answer is A, 'sudo passwd', as this command is specifically used to change a user's password. Option B, 'sudo userdel', is used to delete a user account, not change credentials. Option C, 'sudo chage', is used for changing user account expiration information, and option D, 'sudo usermod', modifies user account properties but does not directly change the password.