OS

Hack Root Password (Linux)

Sometimes you may forget root password of Linux Distribution .So here is way to change it .You may use this trick to hack any Linux.

Steps:
1.Boot to GRUB Boot loader .Generally grub is loaded automatically if not then long press shift key after BIOS loads.
refer image below:

image

2.Now highlight your distribution (In my case Ubuntu) and press ‘e’ to edit the highlighted option.
Now Screen must be Something like this(contents may differ):

image

3.Use down arrow key and scroll down until you see “Linux” or “Linux16”
In front of Linux some parameters (or say commands) are given .These parameter are Multi line each line ending with “/”.(refer image below)

4.You have to add extra parameters. Now scroll to end of the parameter list of Linux(or Linux16)
These are(without quotations):
“rw init=/bin/bash”

image

5.Now Press Ctrl+X to boot.
after boot you will be in shell.
(refer image below)

Now its time to Change password.

image

6.Type command (without quotations):
“passwd root”

Now you’ll prompted for password:

Enter New UNIX password:$your_password
Retype new UNIX password:$you_password

image

Done!
Enjoy!

still queries ask here….comment below….

and don’t forget to hit like if it helped you through bad times.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s