resetting the root password
When the root password has been lost, it can be reset as follows.
At the grub menu, select 'e' to edit, and add the parameter 'init=/bin/bash' to the linux line. Then 'ctrl-x' to continue booting. This will start the system into a command shell.
Then remount the filesystem root as writable, so that the password can be changed:
Change the password in the usual way, then sync to disk:
The filesystem is then remounted as read only:
And the system can then be rebooted:
At the grub menu, select 'e' to edit, and add the parameter 'init=/bin/bash' to the linux line. Then 'ctrl-x' to continue booting. This will start the system into a command shell.
Then remount the filesystem root as writable, so that the password can be changed:
Code:
mount -n -o rw,remount /
Code:
passwd sync
Code:
mount -n -o ro,remount /
Code:
reboot
Total Comments 0