Verify linux user passwords

Posted by zero_r on Server Fault See other posts from Server Fault or by zero_r
Published on 2011-01-04T13:59:29Z Indexed on 2011/01/04 15:55 UTC
Read the original article Hit count: 192

Filed under:
|
|

Hi there

I got a linux server that has several dozen users. I also have the cleartext password for every user (i know - bad security).

I would like to know if the passwords are correct. Since the users are all ftp users and have the nologin shell, I cannot just write a script to check if login works.

How can I do a local check on passwords? Script output could look like this:

$ check_userpw < user_pw_list.txt
user1 ok
user2 ok
user3 mismatch!
user4 ok

Thanks

© Server Fault or respective owner

Related posts about linux

Related posts about scripting