nerdexam
CompTIA

XK0-004 · 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

Troubleshooting and Diagnostics

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

(20 responses)
  • A
    90% (18)
  • C
    5% (1)
  • D
    5% (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

#single-user mode#root password reset#passwd command#system recovery

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice