I have forgotten the password to log in to Ubuntu (15.10). My home folder is encrypted. I do have the passphrase. How should I change the user password? There are some procedures here but they do not mention if there is any difference if your home directory is encrypted. How to proceed?
Asked
Active
Viewed 1,229 times
1 Answers
0
You can try the following:
boot the pc with a live-cd or live-usb
mount the filesystem you lost the password from and chroot into it. from a terminal:
cd /media mkdir tmp sudo mount /dev/sda1 /media/tmp sudo chroot /media/tmp /bin/bash/dev/sda1is an example. change it to where your file system is if necessary.now reset the password from the user you lost the password from
sudo passwd usernameunmount
sudo umount /media/tmp
Hope this helps.
Byte Commander
- 110,243
drizzle
- 51