====== Resetting forgotten user passwords under Linux ======
===== Using a Live system =====
- Boot the Live system and open a prompt.
- If not already mounted, mount the file system in question. \\ sudo mkdir /mnt/sda3
sudo mount /dev/sda3 /mnt/sda3
- Chroot into the system. \\ sudo chroot /mnt/sda3
- Change the password. \\ passwd unluckyuser
===== Using Recovery mode =====
- Hold Shift when booting to bring up GRUB menu
- Select a kernel with recovery mode
- In the recovery menu, select root (Drop to root shell prompt)
- Confirm with Enter
- Mount / as writable \\ mount -o remount,rw /
- Change the password \\ passwd unluckyuser