Difference between revisions of "Lost Password"
Jump to navigation
Jump to search
(another method) |
|||
Line 24: | Line 24: | ||
#reboot | #reboot | ||
+ | The procedure can be used for distributions other than the freekbox2 or 3, but you first need to determine the name of the root partition for the mount command. | ||
− | + | A third alternative is to edit the grub boot commands. | |
+ | #start the computer booting up | ||
+ | #at the GRUB screen enter "e" | ||
+ | #edit the line starting with "kernel" by selecting that line and entering "e" | ||
+ | #add "init=/bin/bash" to the end and change "ro" to "rw" | ||
+ | #enter to make the changes | ||
+ | #enter "b" to continue the boot process | ||
+ | #the boot will go to a root prompt. change the password at that point and reboot. | ||
+ | |||
+ | See how insecure the box is if you have physical access to it? | ||
[[Category:Tech support]] | [[Category:Tech support]] |
Revision as of 12:53, 4 October 2005
Lost Root Password
These instructions apply to the FreekBox, either version 2 or 3
- Ask the adopter to bring the box in.
- Put the box on the network in the tech support office or build.
- boot to grub
- lessdisks boot options.
- boot to lessdisks.
- login as root.
- "mount /dev/hda3 /mnt"
- "chroot /mnt"
- "passwd"
- change password
- "sync"
- reboot
Alternatively one can boot the box using a knoppix cd, a rescue floppy, or a Toms Root Boot disk, then login as root and proceed as above.
- "mount /dev/hda3 /mnt"
- "chroot /mnt"
- "passwd"
- change password
- "sync"
- reboot
The procedure can be used for distributions other than the freekbox2 or 3, but you first need to determine the name of the root partition for the mount command.
A third alternative is to edit the grub boot commands.
- start the computer booting up
- at the GRUB screen enter "e"
- edit the line starting with "kernel" by selecting that line and entering "e"
- add "init=/bin/bash" to the end and change "ro" to "rw"
- enter to make the changes
- enter "b" to continue the boot process
- the boot will go to a root prompt. change the password at that point and reboot.
See how insecure the box is if you have physical access to it?