- Reboot Bayanihan Linux and select "recovery mode"
- Use the arrow keys to select the 2nd line and press "e" to edit it.
- Type "
init=/bin/sh" at the end of the line, press Enter and then press "b" to boot the system. - Type "
mount -n -o remount,rw /" at the prompt. - Type "
mount -avt noproc" at the prompt. - Edit the files
/etc/shadowand/etc/shadow-if it exists by typingmc -e <name of file>. - Delete the string that follows
root:but only up to the second colon. - Save the files by pressing F2 and exit the editor by pressing F10.
- Type
rebootat the prompt to restart the system and again select "recovery mode". - Press Enter at the prompt.
- Type
passwdand press Enter and type in your "new" root password. - Press Ctrl+D to proceed to the login screen.
Bayanihan Linux Repository
Advanced Science and Technology Institute
Advanced Science and Technology Institute
8 December 2008
Troubleshooting: Lost ROOT password TIP
Lost your root password? Try this tip:
Permalink