nerdexam
ExamsXK0-004Questions#17
CompTIA

XK0-004 · Question #17

XK0-004 Question #17: Real Exam Question with Answer & Explanation

The correct answer is A: Boot into a single-user mode and reset the password via the passwd command.. Boot into single-user mode and reset the password via the passwd command. Summary of below link. 1. Boot to single user mode. 2. remote drive. 3. change password using passwd. https://phoenixnap.com/kb/how-to-change-root-password-linux

Question

A Linux server needs to be accessed, but the root password is not available. Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?

Options

  • ABoot into a single-user mode and reset the password via the passwd command.
  • BBoot into a single-user mode and reset the password by editing the /etc/passwd file.
  • CBoot into a single-user mode and reset the password by editing the /etc/shadow file.
  • DBoot into a single-user mode and reset the password via the chage command.

Explanation

Boot into single-user mode and reset the password via the passwd command. Summary of below link. 1. Boot to single user mode. 2. remote drive. 3. change password using passwd. https://phoenixnap.com/kb/how-to-change-root-password-linux

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice