Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello Folks
am a linux admisnistrator "Root", one of my users lost his password and i want to get it back , am using fedora core 3 how can that be done ... am waiting for any kind of help
The second field of /etc/shadow is the encrypted password of the user. If you have a recent backup you can add that password back by getting it out of the old /etc/shadow and pasting it into the current one.
The second field of /etc/shadow is the encrypted password of the user. If you have a recent backup you can add that password back by getting it out of the old /etc/shadow and pasting it into the current one.
Good point---I never backup stuff in /etc so this obvious option did not make it into my brain....
Linux passwords are stored using a one-way encryption system. Whenever the password is typed in, it is encrypted into an encoded format. To verify a user's login, the system just compares the encrypted forms.
There is no reverse algorithm for the encryption. If you want to find out the user's password, then the only way to do it is to try every possible combination until you find a match. If it was possible to easily reverse-engineer the password from its encrypted form, then securing the password would be much harder.
The second field of /etc/shadow is the encrypted password of the user. If you have a recent backup you can add that password back by getting it out of the old /etc/shadow and pasting it into the current one.
But that does not help if the user has lost his/her password......
No, there isn't. A password cracker can't generate the password from the hash. It generates its own hash from its own password and compares the result with the original hash. The direction of the operation isn't reversed at any point.
No, there isn't. A password cracker can't generate the password from the hash. It generates its own hash from its own password and compares the result with the original hash. The direction of the operation isn't reversed at any point.
Exactly. And almost always, that IS the original password. The link I gave shows a good example of that where the user password was "fred123". The ripper found exactly that quickly.
That IS a reversal. A brute force reversal, but a reversal none the less.
That IS a reversal. A brute force reversal, but a reversal none the less.
Any type of password cracking which uses guessing (this includes both brute force and dictionary) is NOT doing anything in reverse. It's the exact same operation which was done when the original password hash was originally created, the difference being that you're doing it a gazillion times and the resulting hash of each guess is compared to see if it matches the original one. It's not reversal, the direction remains the same. You're just doing tons of comparison.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.