Password changed automatically after update, am i hacked?

Asked by Asif ansari

Hi i am using ubuntu 12.04 , my password had been changed how to recover or reset it ?
or
tell me where the update file get stored by ' sudo apt-get update'
 , i will take backup of the updated file and reinstall ubuntu 12.04

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shadow Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Hold SHIFT at boot and select recovery mode then select root. You can now run:

passwd foo; reboot

Replace foo with your username. Eg:

passwd andy; reboot

You can now log in with your new password

Revision history for this message
Asif ansari (asif-ansari4u) said :
#2

It shows

passwd: Authentication token manipulation error
passwd: password unchanged

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3

Try:

sudo mount -o remount,rw /
passwd foo
reboot

Revision history for this message
Asif ansari (asif-ansari4u) said :
#4

It is giving long detail help about mount,did i have to type 1st command accurately as given

Revision history for this message
Asif ansari (asif-ansari4u) said :
#5

Oops! sorry ...... Done :)
password updated successfully

Revision history for this message
Asif ansari (asif-ansari4u) said :
#6

Oops! sorry ...... Done :)
password updated successfully

Revision history for this message
Asif ansari (asif-ansari4u) said :
#7

I had not given space between ' rw ' & ' / '....Thanks

Revision history for this message
Asif ansari (asif-ansari4u) said :
#8

Thanks actionparsnip, that solved my question.