- Boot from a LiveCD to get access to the "/" partition.
- Then, mount the partition where you have Debian's "/" (root directory),
- Then change directory to /mnt/etc
- Used nano as an editor to edit the file shadow.
- Find the line starting with root: (or another username)
- Delete everything between the first and second colons (:), and the line will now look like:
root::$6$fsdsdgdsg74.:14862:0:99999:7:::
- Reboot and login as root (or another username as used above) without a password.
- At the end use passwd to set a new password for the root account (or passwd username to change any account password).
- Reboot and login as root with the new root password.
Thank you very much. I will give this a go tonight or tomorrow night after work.