As this page says root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user and the superuser. Getting into the linux root is a necessity when talking about privileges and let me show you how to get the easy access.
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 😀
- 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. 😀