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
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)- A89% (24)
- C7% (2)
- D4% (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
Community Discussion
No community discussion yet for this question.