Password changed automatically after update, am i hacked?

Asked by Asif ansari on 2012-09-15

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:
2012-09-15
Last query:
2012-09-15
Last reply:
2012-09-15

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

Asif ansari (asif-ansari4u) said : #2

It shows

passwd: Authentication token manipulation error
passwd: password unchanged

Try:

sudo mount -o remount,rw /
passwd foo
reboot

Asif ansari (asif-ansari4u) said : #4

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

Asif ansari (asif-ansari4u) said : #5

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

Asif ansari (asif-ansari4u) said : #6

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

Asif ansari (asif-ansari4u) said : #7

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

Asif ansari (asif-ansari4u) said : #8

Thanks actionparsnip, that solved my question.