In the Previous Article, we learn to reset and crack password without using any Live Cd or External device by using recovery mode present on the OS itself.
Here again, it’s really bad to lose or forget a password and yu are locked out of your system. So here is the second method to reset it with the help of a Ubuntu LIVE OS. If you don’t have Live OS of Ubuntu please read our article How to break Ubuntu root password without CD (Recovery Mode)
By the end of this article, we’ll be able to reset root password of UBUNTU and we will create our new password.
Step 1: Boot With Live OS
In this method, you need to insert a Ubuntu OS CD into the system and select option and boot as LIVE OS. After finishing boot you will get the same environment like running a Ubuntu installed on this system.
Step 2: Get The Terminal
Now open the terminal of the system and from here we will do our task of finding disk on te system.
Step 3: Find Disk and Mount
Now first task is to figure our the primary HDD for this run the following command
This Command will ll the HDD attached into the system and also list all the present partition. As we know our OS is in /dev/sda1(Most of the Time). so mount it using the following command
#sudo mount /dev/sda1 /mnt
Step4: Cross Mount Server File System
Now, will cross mount permanent OS file system on the live OS by using a simple shell command. This is like copying permanent file of live OS. we will use all these files for next step.
#for kp in dev sys run proc; do sudo mount --bind /$kp /mnt/$kp; done
Step 5: Get Root Access
Now it’s time to get root access of all the files you have mounted on /mnt n we know that /mnt now have all the file associated with the permanent OS. type Following command to gain root access.
#sudo chroot /mnt
You can now do anything root can on the real install.
Step 6: Reset the password and reboot
Now you have root access on the /mnt and its time to change your root with the following command
#passwd #Enter new UNIX password: #Retype new UNIX password: #passwd: password updated successfully
Now Reboot your system and you are done.
Hope this article was helpful fro you. If any issue feels free to comment.
You May Also like to Read
- How To Break/Crack ROOT Password In UBUNTU Without CD (Recovery Mode)?
- Track Nginx Response Time
- How to Search On Linux Terminal