How to crack root password on SuSE Linux
Tags: crack, Linux, Password, root, SUSE
Shit! I’m lost my SuSE Linux root password! I can’t remember what is my root password, I have tons of password inside my head and I can’t recall.
Don’t worry, If you’ve lost your root password, you might be able to do it this way. Let me explain “How to crack your root password on (SuSE) Linux“.
First login to single user mode. If you don’t see either a LILO or GRUB boot screen, try hitting CTRL-X to get one. If it’s LILO, just type “linux single” and press Enter. If GRUB, hit ‘e“, then select the “kernel” line, hit “e” again, and add “single” or just “1” to the end of the line. Press ENTER, and then press “b” to boot into single user mode. If you get a message “Give root password for system maintenance“, this isn’t going to work because you have another password control here.
So, you can add “init=/bin/bash” (LILO “linux init=/bin/bash” or add it to the Grub “kernel” line after “single” or “1” as mentioned above).
By the time, you should be able to see a prompt “#“. As you know root password is write on the /etc/shadow file and I don’t think you have permission write into “/etc” folder.
Type:
mount -o remount,rw /
OR
mount -o remount,rw /dev/sdX
which sdX is your “/” partition.
Edit “/etc/shadow” file.
#vi /etc/shadow
root:1a9quOjah.qkINHssWn1VvU5gsxsa:12209:0:99999:7:-1:-1:2174970543
bin:*:12187:0:99999:7:::
daemon:*:12187:0:99999:7:::
adm:*:12187:0:99999:7:::
Remove root password by delete “1a9quOjah.qkINHssWn1VvU5gsxsa” which sitting in between root: and :12209.
root::12209:0:99999:7:-1:-1:2174970543
bin:*:12187:0:99999:7:::
daemon:*:12187:0:99999:7:::
adm:*:12187:0:99999:7:::
Save and exit using “:wq!”
Reboot the Linux machine and you should be able to login as root without any password. Change your root password again for security reason. Hope you can remember your root password this time ![]()
Possibly Related Posts:
- Ask Google Engineer a Questions
- Fedora 10 Artwork
- Set a Good Password Policy On SuSE Linux
- How To Check Which Port Is Listern or Open on Linux
- How To Force User Change Password At Next Login on Linux