Hi.
I want to write a C Program that get a user name and password , then compare it with encrypted password in /etc/shadow.
I start with below program:
I want to write a Socket Program, receive a message as a password (Plain text) and check that. Is that true or not.
How can checked out the source code to login from my Linux distribution?
I apologise, as english is obviously not your first language.
find a linux distribution that does cater for your language, download the shadow package for it, and within the shadow package will be the login utility code.
Once you see how login compares plain text with the encrypted text in the shadow file, it should be a trivial matter to add that process to any program