Nice way to hack Ubuntu: use Ubuntu Live CD
PDF version
Thanks to a nice article from HowToGeek.com, you now have a step by step tutorial of how to hack a Ubuntu install via a password reset ;)
Recap:
- Boot from LiveCD or USB pen drive
- Select “Try Ubuntu w/out any change to your computer”
- Do a “sudo fdisk –l” to find your devices and their names
- Make a directory to mount your drive “sudo mkdir /media/sda1”
- Mount the drive: “sudo mount /dev/sda1 /media/sda1”
- Use chroot: “sudo chroot /media/sda1”
- change the password using the “passwd” command
Note of course, that there are other ways of doing this, especially when you are using some of the security related distros