If you forget your Linux root password, you can maybe reset it if you have physical access to the machine.
- Go to the Linux server machine.
- You will see the login prompt
- Press Ctrl-Alt-Del (three keys at the same time)
- The machine will reboot. If Ctrl-Alt-Del doesn’t work, try Ctrl-Alt-Backspace.
- Wait for the machine to finish rebooting (this may take a few minutes especially if the machine does a hard drive integrity check on startup).
- You will see a lilo: prompt.
- Enter linux single to start single user mode.
- Enter passwd to set the new root password.
- Enter the new root password (you will enter it twice).
- Press Ctrl-D to start multi-user mode (which is the normal Linux mode).
- You will see the login prompt again.
- Enter root for username.
- Enter your new root password.
- You should be logged in as root.
- Enter exit to logout.
It’s difficult to find knowledgeable people about this subject, but you seem like you know what you’re talking about! Thanks