How to crack root password on SuSE Linux
Posted by Planet Malaysia on July 10, 2008
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:
- How to add Dell PERC Drivers into VMware Converter Cold Clone ISO
- Top 10 Free Anti Virus
- How to Install Webmin on OpenFiler
- Microsoft SQL 2008 Agent not starts
- VMware Workstation 7 Serial Key
Comments
2 Responses to “How to crack root password on SuSE Linux”
Leave a Reply
Wopks! Thanks.
Hi,,,i’m not able to login for root user. it is showing login authentication is denied like that please help me to solve this issue