Locked out of admin account; but the password is right in shell; password changed too!
I have a dual boot, win 7 and the latest lts 12.xx. I tried logging into my regular account but it keeps refusing to open. There is no message saying anything was incorrect, but that message still comes up if I type in gibberish as a password.
I initially thought that changing password would help, even though I could access my files by using the correct one in shell through recovery mode. So I did change using 'passwd'. But the result is the same. I cannot open my desktop, just shell which I dont know too much about when it comes to transferring files between partitions
SIDE NOTE: I made a guest account for people to use when I am not around without a password. But decided to put in a simple password later through the 'users'(i think thats the name) program in the settings menu. But the changes did not take place and I am still unable to add the password even though everything runs fine while adding and adjusting priveleges. Maybe the two things are related???
31 Answer
Go back to recovery mode, and choose to drop to root shell.
# cat /etc/passwdyou should see a return like this:
root@TOSHIBA:~# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
if you get that x after root, then shadow file contains the root password.
do:
# nano /etc/shadowscroll to your user account, and remove everything between the first set of ":"
change this:
denis:$6$9eL.6v0I$Ze6X0970H/DC5vlH/
to this:
denis::15680:0:99999:7:::
Hit CTRL + O to save
and
Hit CTRL + X to exit
Reboot.
3