Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
useradd nagesh..
passwd nagesh
passwd is prasad..
but after that nagesh changed his passwd ..
can i view what is nagesh passwd?
Is there any chance with /etc/shadow or any file??
Is this possible...?? i can change passwd but can i know what is the passwd??
Answer is: you shouldn't be able to, and directly you can't (at least not that I'd know it's possible) but then again, as root you have access to shadow file and therefore you could just use brute force to start guessing the password value, and compare the guessed password's crypted value to the value in shadow and when they match, you'd know the password.
The system is built so that nobody should be able to see the passwords. However there must be a way to read the masked password, in order to check it against the password somebody gives when logging in; this inevitably leads to a situation where somebody (root user) can read the crypted password value. Directly it's no use, unless you know how to uncrypt the value in a correct way to get the original password; however this is pretty difficult (I'd say impossible but I doubt that). Still the root user who can read the crypted value can do the same trick that is done when the password is checked: compare crypted values (instead of trying to uncrypt the crypted password without knowledge how it was exactly crypted).
If you do find a way to "read" the clear password, do tell the rest of us too -- that would show the system has a hole in it, after which it could be fixed.
Root user has some responsibility, or should have, so that's why you don't give root account information/password to anyone else but yourself (if you happen to be the one who knows it). And then again, if you have a system with other users, they must be able to trust the administrator who has root privileges so that the administrator doesn't spend all his/her spare time trying to brute-force the users' passwords
no, not possible. that's the point of it. if you change a password the end user is aware of it of course. if you just know it, he doesn't know. obviously as root though you can become any user you wish within a standard system...
But I thought you can change the way that passwords get stored. (for example user management with a service; I can't recall the name at the moment)
So you can change it to plain text.
i have a reason...
my frd is working in some comp...she changes her password ..the next day her sytem admin comes and tell ur new passwd is this..
how is this possible?
how can he encrpt the passwd which is in /etc/shadow???
my frd is working in some comp...she changes her password ..the next day her sytem admin comes and tell ur new passwd is this..
What's "frd"? And what's with all the shorts? Some people try hard to make as few spelling mistakes as possible and we still can't do a good job. Why do you try to cripple your text on purpose?
Does "her system admin" have a thing for her? Is he trying to show off? Is she liking it? How do you feel about it?
Aaanywho. There is more than one way to find out a user's password after he changed it, if you have complete control of the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.