Drag steps to the numbered slots on the right, or tap a step then tap a slot.
XK0-006 Practice Question: Drag and drop the steps to recover a forgotten…
Drag and drop the steps to recover a forgotten root password in single-user mode in the correct order.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Reboot and edit GRUB to append 'init=/bin/bash' to the kernel line, then boot to a shell, then remount root as read-write, then change root password and reboot.
Root password recovery involves booting into single-user mode and remounting root as rw.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Reboot and edit GRUB to append 'init=/bin/bash' to the kernel line, then boot to a shell, then remount root as read-write, then change root password and reboot.
Why this is correct
This order is correct because you first interrupt the boot process to add the init parameter, then boot into a shell, then remount root as rw to allow password changes, then change the password and reboot.
- ✗
Change root password, then remount root as read-write, then reboot and edit GRUB, then boot to a shell.
Why it's wrong here
This is incorrect because you cannot change the password without first booting into the recovery environment and remounting root as rw. Also, editing GRUB after booting is not possible.
- ✗
Reboot and edit GRUB to append 'init=/bin/bash', then remount root as read-write, then boot to a shell, then change root password and reboot.
Why it's wrong here
This is incorrect because remounting root must happen after booting to the shell, not before. The shell from the init parameter is needed to run the mount command.
- ✗
Boot to a shell, then reboot and edit GRUB, then remount root as read-write, then change root password.
Why it's wrong here
This is incorrect because you must edit GRUB before booting to a shell with the init parameter. Booting normally then editing GRUB after boot is not possible.
Go deeper
Related to this question
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.