Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to see the passwords in clear text ?

Status
Not open for further replies.

haux

Programmer
Apr 11, 2001
79
DZ
I am the root, on my PC (Linux 6.2).
I had allowed some freinds to telnet to my pc, they have the permession to change they passwords.

How i can optain the password of one user in clear text ????

Any suggestions, i really have no idea :(
 
Hi,

The passwords are run through a one-way encryption algorithim and stored in /etc/shadow (second field of each row). There is no code supplied to unencrypt passwords because it would be an obvious security weakness that could make linux passwords more or less useless. The way it works is that each time someone supplies a password (e.g. login) the plain-text is run through the same algorithim as created the encrypted password in /etc/shadow. The two encrypted passwords are then compared to check for authentication.

If a user has forgotton their password you can't look it up for the above reason. The solution is that you (as root) change it to a new password :

passwd user1 (where user1 is logon name)

If, however, you want to 'crack' a password for whatever reason, there are programs out there that will ultimately use brute-force to try to obtain the password. Thats cracking though and not really appropriate to this forum....

Regards



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top