|
Can we login super user without knowing root password?
Hi, I am seshagiri rao. I am pursuing PGDIT at 21st Century Gurukulam, Andhra University.
I have been using linux operating system for 1 year. I found so many new things which are very interesting. I would like to share those things with you.
As a part of that, in this week magazine you will know how to login the super user without knowing root password.
Actually this is done by login as a single user mode which is one of the simplest System recovery modes.
There are times when a Fedora system will not boot normally, due to the state of the filesystem,
the absence of startup files,
or incorrect configuration. Most users will never encounter these circumstances,
but it's important to know what to do if they arise.
To enter single user mode, interrupt the normal grub boot display
(which usually shows a message counting down the seconds until Fedora is booted, or which may show a menu of
available operating systems if you have altered the default grub boot configuration)
by pressing the spacebar. If you have a boot password, press P and enter the password now.
Press the 'e' key to append boot options to the default kernel, and type a space
and the letter 's' or 'single' to indicate that you want to enter single-user mode,
as shown in Figure1. Press Enter to continue booting.
The system will boot and then go directly to a root shell prompt
(Figure 2). You can perform any normal administrative functions
at this prompt. Then by using 'passwd' command, you can enter the new password to the super user. The steps at
this stage are:
sh-3.2# passwd
Creating password for user root
new UNIX password: (type new password)
Retype new UNIX password: (type new password)
password: all authentication tokens updated successfully.
sh-3.2# exit
Then it will continue the booting and show the user login screen. So you can login with new password.
That is all about this week. We will meet again with another interesting news in linux.
To know more about me contact with
seshagirirao@gurukulam.in
|