I changed my debian password using “passwd” command now I forgot it! Anyway I can remove or recover it?
On Fri, 18 Mar 2016 22:51:03 -0700 (PDT),
m.zaid54323@gmail.com declaimed the
following:
I changed my debian password using "passwd" command now I forgot it! Anyway
I can remove or recover it?
If it were the root account, probably not... For a regular user
account, logging in as root should let you set a new password for the user
account -- or at worst, find the password/shadow file and hand edit it to
remove the hashed password.
There is no "recover"; standard password processing is to use a random
"salt" (which is saved as the first two characters of the hashed password)
and a one-way hash function to generate an unreadable mess. No way to get
cleartext back from the hash -- password checking is done by taking the
"salt" from the password/shadow file, attaching the user entered password,
hashing, and comparing the result to the one in the file. The shadow file
is used for this as it is only accessible to the system/root; before then
the hash was part of the regular password file which was readable by anyone
(allowing them to do password hashes with various salt pairs and scan the
file for any user having the same hash).