Root password lost?
posted by pennegaonTuesday May 25th, 2010, 15060 total view
Are you trying to access your system as root but can not remember your password? You are about to fall into despair because you believe you have to do the impossible to recover your administrator password? Thinking about having to reinstall the system?ALT Stop here and continue reading.
The following procedure resets the password to the root user, the only thing to do is add/modify some parameters to pass to the system at boot time and then assumes you have access to the machine.
At the grub prompt, select the row to edit and press “e” as “EDIT”, to the next screen will display the lines that run when you select the “TITLE” selected in the previous step. Now using the arrow keys to select the line that contains something like:
kernel /vmlinuz26 root=/dev/sda3 ro radeon.modeset=0 vga=791
press again “e”to edit and change the line
kernel /vmlinuz26 root=/dev/sda3 rw init=/bin/bash radeon.modeset=0 vga=791
Complete the changes just press enter and then “b” to start the system., at the end of the start-up we will be in a root schell, at this point just type the command passwd for change the password.