So I have this computer Hp pavilion dv5220 and I can't use it it's stuck with one user and I don't have that password all I can use is the guest account and I can basically do nothing as a guest it's on 14.04 software and I can't run and updates or anything without an actual account and I no wifi
1 Answers
Assuming you didn't encrypt your home directory...
You should be able to
- boot from a live ubuntu CD/USB (with architecture matching your local install)
- mount your local HD installation in /mnt
- chroot to /mnt (this will give you a root shell)
- perform password reset with the passwd command.
If your user directory is encrypted, this will not work!
Here's what this looks like for me
After booting into the LiveOS, I open a terminal and issue the following commands
sudo mount /dev/sda1 /mnt# mount the root partition on /mnt; yours may or may not be /dev/sda1sudo chroot /mnt# if this command fails, you mounted the wrong partition in the last steppasswd $username# where$usernameis the account that needs the password reset
Enter a new password when prompted and confirm. Then you should be able to reboot and log in with the new password.
Some free unsolicited security advice
For anyone wondering how to protect himself/herself against others who might use my answer for harm, I feel it imperative that I also provide some security advice.
Encrypt your entire install (FDE) or at the very least, encrypt your home directory. FDE (full-disk encryption) will prevent access to the file where password hashes are stored. On a system using FDE, the steps I provide above would not work!
Home directory encryption will not prevent password changes using this approach, but even if someone were to change your password, they still would not be able to log into your account because the password used to encrypt your home directory would remain unchanged. It would be a pain though because you'd have to change your login password back to match your encryption password.
- 4,868
- 4
- 26
- 49