You shall need :-
- An Linux operating system -(Ubuntu ,Fedora or anything .. )
- Direct access to the system, ie you need to restart it alright.
- The Recovery mode enabled in the GRUB is not a necessity.
The steps :-
- So, the vector is the GRUB boot loader, we see just after booting on our system :-
- Here, select the first option , and press 'e' as it says to edit.(Ubuntu,with LINUX )
.
- Here edit the line : set root = '(hd0,msdos1x)
' to ' '
- press F10 to boot and you will get into the root@none shell :D
- now enter : mount -rw -o remount /
Actually you are remounting the base file-system '/' in rw (read-write) mode so that you can actually change the / contents . - now enter the password changing command : passwd
- enter new passwords :)
- enter the command : sync To make the changes permanent (can skip of course.)
- reboot -f and you are ready to go :).
- Now to access root terminal from a local account :- Open the terminal, and type su ; enter the root password and :)
Thank You !
Disclaimer :- Working in the root terminal can cause irrecoverable errors to the system. Please be careful.I shall never be held responsible though. :D
No comments:
Post a Comment