1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
Solution 1 Boot into grub, # DO NOT NOT not press enter. # Press e to go into edit mode. Scroll down to the kernel line, go to the end "linux /boot/vmlinuz-3.0……." add the this line init=/bin/bash Press Ctrl X to boot # Remount / as Read/Write mount -rw -o remount / # Change the root account password with passwd # Change any other account password with passwd username Solution 2 # Boot from another installation of Debian. # Such as LiveCD to access "/" root partition. # Mount the partition where you have Debian's "/" (root directory), # Access directory to /mnt/etc # nano /mnt/etc/shadow. # it should looks like , root::$6$fsdsdgdsg74.:14862:0:99999:7::: # Reboot and login as root without a password. # passwd root # exit |