Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
There's no easy way to recover a password unless it's really idiotic. You can google and read about johntheripper, which is a tool that can be used to break passwd files. It's commonly used to ensure that there are no weak passwords on a given system.
You can, however, set a new password for any user if you are logged in as root. If you can't login as root and the single user mode is disabled, boot off a livecd, mount your / partition anywhere, chroot into it and then use the passwd command to set a new root password. Once you have that, you can login as root on your own system and change any user's password with "passwd <username>".
Can any one tell me, how to recover user or root password. not change from single mode.
Thanks & Regards,
Passwords are stored on most systems using a one-way hash, so other than brute forcing it (as stated above), there isn't much you can do. This is by design.
I cannot think of a legitimate scenario where one would need to "break" the password rather than simply replace it. Could you explain why you cannot simply replace the password?
Could you explain why you cannot simply replace the password?
Actually, This stupid question was asked in the Interview.
See, I know that this is also wrong process. and not a good practice for system administrator.
Thanks, :-)
Last edited by deepak_message; 06-06-2008 at 12:37 AM.
I cannot think of a legitimate scenario where one would need to "break" the password rather than simply replace it. Could you explain why you cannot simply replace the password?
If you are an evil hacker and want to steal your friends' girlfriend's fotos from his PC without his knowledge.
This is pretty legitimate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.