To Reset Root Passwd
step1 :- Restart your server or desktop
step2 :- press continue shift untill boot menu show
step3 :- select ubuntu generic second option press Enter
step4 :- then select root shell press Enter
step5 :- type mount -o rw,remount / or # mount -o remount,rw / or mount -rw -o remount /
step6 :- sudo passwd root or passwd root assign passwd and then repeat again the same passwd
Note :- in place of root you can set your name,hostname any name that u assign during installation OR Login.
You can also Create NEW USER
step7 :- sudo adduser ubuntu and give new passwd
- Boot the system with an Ubuntu live USB or DVD and try to switch to rescue mode. In rescue mode you will be asked if similar steps should be followed, which need to be followed in the installation. Once you get the # prompt, type the following command:
- Edit the
grub.conffile and remove the passwd line from the file. Save the file and exit.
- Once your machine reboots, you will be able to start your Ubuntu in the usual manner.