authentication user by /etc/shadow
the etc/shadow - file contains user-info,
including the encrypted password.
I would like to make a website with authentication
with these useraccounts.
Doing this, the user has to write his username and password,
and a script has to compare these with the existing username
and encrypted password in the shadow-file.
Can anybody tell me how i can encrypt the written password
in the same way as it has been done before it was saved in the
shadow file?
Thanks,
Thomas
|