nerdexam
CompTIA

XK0-005 · Question #17

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?

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

System Management

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.

How the community answered

(27 responses)
  • A
    89% (24)
  • C
    7% (2)
  • D
    4% (1)

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

Topics

#Linux password reset#Single-user mode#Root access recovery#System administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice