LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   revealing user's pasword (https://www.linuxquestions.org/questions/linux-security-4/revealing-users-pasword-437682/)

wincrk 04-22-2006 05:09 AM

revealing user's pasword
 
hi,
as an administrator, we could reset users password, but could we discover the pasword?

ioerror 04-22-2006 05:22 AM

Only by using brute force cracking (that's the whole point of passwords!). Or, you could hypnotise your users to help them remember... ;)

cs-cam 04-22-2006 05:25 AM

The short answer is no.

J.W. 04-22-2006 08:42 PM

Out of curiosity, why are you trying to accomplish this?

wincrk 04-23-2006 11:56 PM

just want to know how the system works. is this means that an administrator could not log in as a user without knowing his password or resetting his password.

lest say if the password could be brute force, how it could be done, there is nothing in "passwd" file.

J.W. 04-24-2006 12:19 AM

Quote:

Originally Posted by wincrk
lest say if the password could be brute force, how it could be done,

Any password can be broken by brute force. Brute force simply means that every single possible combination of characters that could be used in a password will be tested. If we assume that a password is 10 characters long, and that there are 128 ASCII characters that could be used in the password, then there are 10^128 possible combinations to test using brute force.

If you are attempting to eavesdrop on users without their knowledge, that would be considered cracking, and would not be welcome on the LQ forums

spooon 04-24-2006 01:22 AM

Quote:

Originally Posted by wincrk
is this means that an administrator could not log in as a user without knowing his password or resetting his password.

No. root can always "su" to any user without password

Quote:

Originally Posted by wincrk
there is nothing in "passwd" file.

the password hashes are stored in the /etc/shadow file instead

ethics 04-24-2006 04:17 AM

What an odd post, that being said all i have to do is ask users for their password, despite teling them not to give it me....

jlliagre 04-24-2006 04:55 AM

Unix users should never give their password to anyone, even an administrator, as root doesn't need it to impersonate as any user anyway.

cs-cam 04-24-2006 05:58 AM

Stoked this dude doesn't admin any computers I work on...

ethics 04-24-2006 07:01 AM

These machiens i am on are running VNC server but the service is screwed and doesn't start, shame really, they might learn some things here :)

But no, you should not be trying to access users accounts without their permission, i don't even know the standing on this (whether the account is considered company property, or whether it's protected by privacy laws). If my employer tried that, they'd be in trouble

Poetics 04-24-2006 09:22 AM

Something to remember: if you 'su' into another user as root, the actions you perform will all have timestamps, but there will be no record of the user logging in, which is always suspicious.

I agree with cs-cam

XavierP 04-24-2006 03:04 PM

Moved: This thread is more suitable in Linux-Security and has been moved accordingly to help your thread/question get the exposure it deserves.


All times are GMT -5. The time now is 06:09 PM.