Title: how to reset linux root forgotten passwords get retrieve root password
Description: this tutorial guide will show you step by step with pictures and images on how to reset your root password in linux if you have forgotten. resetting is easy just follow as its showing you how to retrieve your system admin password through the command Linux Hosting
Tags: linux, root,password, reset, redhat, centos, os, unix, forgotten, passwords, forgot, retrieve, server, command, guide, tutorial
Info: This Post Has Been Viewed 70936 Times SinceWed Mar 14, 2007 12:22 pm Author hostman With 48 Replies #956

how to reset linux root forgotten passwords get retrieve root password

The other day, i inherited a server which was admin by another company. Now i am expected to login into the linux server and make some changes and update some stuff, but the problem is that the previous admin person did not give me the root password for the server. So today, i found a way on how to retrieve the root password from a linus server.

DISCLAIMER: By you continuing to read this how to guide, you are in agreement that you have permission to access your linux server. Use this information at your own risk, I take no liability for any contents of this post. this information should only be used to recover passwords from machines you have legal access to. If you use this informationt obreak or hack into someone else's systems, then I am not responsible for it. Also, you are advised to make any backups of your system before continuiing.

please note that you cannot perform this remotely, you must be physically at the machine.

1. the first step is to reboot server.

2. Since the server i inherit has GRUB, wait until the grub splash screen comes on and hit the letter 'e' on your keyboard. this will stop grub.
post picture
3. hit 'e' again and this will take you to another screen

4. you should see one of the choices has "kernel" select the one with "kernel

5. hit 'e' on your keyboard

6. type ' single' (make sure to include a space before "single") and hit enter. then enter 'b' to boot.

7. your system should boot up in single mode as root

8. now that you are logged in single mode you can chage the root password by sending this command:
     Code:
passwd


9. after you have changed the root password, reboot server and you should be able to login with the new password.

DONE

LILO ----------------------------

1. If you have LILO, its different, fist reboot server and when you see the LILO: prompt type "linux single" and hit enter. this will log you in as root in single user mode.

2. Once booting is complete, you can change your password with this command:
     Code:
passwd
and reboot server.

DONE

i hope that works for you
Comments (48)
View Top Comments
Leave Your Comments...
#1
Ashok:
5 minutes ago
#182118
Ashok Tue May 01, 2012 5:12 pm
Thanks you, it worked fine
#2
shrishail:
2 weeks ago
#181065
shrishail Tue Apr 17, 2012 1:00 am
thanka it's working
#3
Afaaro:
1 month ago
#178459
Afaaro Thu Mar 15, 2012 6:58 pm
Thank you so much
#4
Tabish:
2 months ago
#177262
Tabish Tue Feb 28, 2012 5:03 am
Nice one :) Please tell us the counter-measure for this hack :)
Thank you :)
#5
Shaheed:
2 months ago
#176454
Shaheed Fri Feb 17, 2012 11:41 pm
Thank you so much... It worked
#6
Tuwi:
2 months ago
#176423
Tuwi Fri Feb 17, 2012 10:29 am
Epic, it made my day
#7
jonas:
4 months ago
#172843
jonas Fri Dec 30, 2011 4:45 am
thanks..its really help me much gold
#8
Sudheep:
7 months ago
#167339
Sudheep Wed Sep 28, 2011 3:39 am
Thanks....Helped me.
#9
Nhexia:
7 months ago
#167210
Nhexia Sun Sep 25, 2011 4:28 pm
Woot! thanks a lot! my server stock 2 years and now i forgot my password.. the i search for this... and its run great! thanks!
#10
Rohit:
7 months ago
#167155
Rohit Sat Sep 24, 2011 7:01 pm
That is very nice!!
but i want to know about other linux like mint ubuntu fedora open solaris etc plz tell me
#11
root:
8 months ago
#164777
root Wed Aug 17, 2011 6:49 am
really great..... now its eazy to crack root passwords.......
#12
Yagesh:
10 months ago
#158970
Yagesh Sat Jun 11, 2011 12:08 am
thanks , password has change through these step
#13
M0rgi0n999:
1 year ago
#149437
M0rgi0n999 Thu Dec 16, 2010 12:40 am
works like a charm for me...
#14
paul:
1 year ago
#136279
paul Fri Jun 18, 2010 5:06 am
Doesn't work for me, change kernal boot setting to 'single' and still asking for user/pwd after started up. any idea why?
#15
mike:
2 years ago
#115434
mike Sun Sep 13, 2009 12:43 am
is there not just a simple way someone who knows nothing and recovery the root passwd ? am not thick well am by your standrds but know my around xp but this??? not a hope is there just something easier to get root passwd? mike
#16
dont:
2 years ago
#106667
dont Thu Jun 18, 2009 4:17 pm
dont know if i am do somethingwrong but don't do wot u said, i am trying to get root password for gentoo install, bit like the other guy install late at night same password as always but wont let me in. when i try your method it asks for the password b4 it will change like passwd always does, i am using from in a terminal window gnome, when i do who -r it say it is run level 3, single user is 1 isn't it?
#17
Baker:
2 years ago
#105159
Baker Tue Jun 02, 2009 7:38 pm
hey man, great explaination

you made it really easy

thanks a lot man
#18
K:
3 years ago
#92805
K Wed Feb 04, 2009 11:13 pm
this looks good but i will try before saying anything else.
#19
tanmoy:
3 years ago
#92226
tanmoy Sat Jan 31, 2009 9:34 am
thank you for your help
i have very little knowledge about computer
whenever i go to install new software or any other computer related problems ,by self i never succed .
but your instruction work in first attempt .
so thans a lot
#20
Parthiban:
3 years ago
#90693
Parthiban Tue Jan 20, 2009 12:45 am
thanks a lot . it really worked good.
Leave Your Comments...
Pages: 123
Share
| More