Recover root password
If you forgot your root password on Linux, recovering root password can be done
by booting Linux under a specific mode: single user mode.
This tutorial will show how to boot Linux in single user mode when using GRUB
and finally how to change root password.
Entering single user mode:
In GRUB select kernel you want to boot and hit 'e' to edit the line.
Select the kernel line and hit 'e' again to edit thet line.
Now add '1' or write 'single' to the end of line, and press enter
and then press 'b' to boot system.
This will make you the "root" user without asking for a password. Once the
system has booted, you can change the root password using the password
command.
Command to change password: passwd
4 comments:
oh.. its gr8! but isnt it unsecure from admin point of view..means any user can pip in admin accoun?
If you want to make your system more secure, you can use password for your GRUB. So that no one is allow to edit GRUB without GRUB password.
Post a Comment