Do NOT do this if you have an encrypted partition, as you’ll lose access to all that data!! reference on forgotten password vis ecryptfs
- at GRUB, choose Recovery Mode, then root.
type (note that “user” is whatever your username is)
mount -o remount,rw /