Exam GSEC All QuestionsBrowse all questions from this 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?

    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
xzibOption: C

answer C