GSEC Exam QuestionsBrowse all questions from this exam

GSEC Exam - Question 54


You work as a Linux technician for Tech Perfect Inc. You have lost the password of the root. You want to provide a new password. Which of the following steps will you take to accomplish the task?

Show Answer
Correct Answer: C

To reset the root password in Linux if it has been lost, you need to boot into a single-user mode. This can typically be done by rebooting the computer and editing the boot options. Rebooting the computer into run level 0 does not make sense as it is the system halt state. Instead, you should reboot the computer in single-user mode (run level 1) or another appropriate state. However, the most appropriate option detailed in the question is to use INIT=/bin/sh to drop to a shell directly. From there, you can use the PASSWD root command to set a new root password once you have access to a shell prompt in single-user mode. Option C provides the most relevant steps to accomplish this.

Discussion

1 comment
Sign in to comment
xzibOption: C
Jun 19, 2024

answer C