Advertisement
Justman10000

Linux Debian - Reset root password

Jun 3rd, 2023 (edited)
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. 1. When the window appears where you normally just press Enter, press E... instead.
  2. 2. Search for the line that contains "ro quiet" at the end
  3. 3. Add the following to the end of said line above: "rw init=/bin/bash".... Note, however, that you cannot copy paste and the keyboard layout is limited to English (see at the end of the instruction).
  4. 4. You are now entering a shell as root user, now use the following: "mount | grep -w /" # The answer should be "rw,realtime"
  5. 5. Now type passwd as usual
  6. 6. Reboot here with: exec /sbin/init
  7.  
  8. Converted buttons:
  9. ´ -> =
  10. - -> /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement