What is the most appropriate way to check whether a given password authenticates in a linux system using shadow passwords and md5?
I'm trying to write a program and need the user to verify themselves with their passwords, but I don't know how to check the passwords they give me.