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