Hi,
I have been trying to write a program that will change a users password
(yes I know there is passwd). I have found the various api's to read
the password and shadow password file, but I am having trouble finding
api/system calls to change the this information (specifically the user's
password). I have gotten so far as to be able to "authenticate" (take
their old password crypt it, find them in the password or shadow file,
and compare the crypted passwords). Its just this last step of actually
making the change that is proving to be stumbling block. I know I could
just open the passwd or shadow file (whichever one is being used to
store the password) up for update and make this change manually, but I
would like to do things the "right" way if possible.
Could anyone point me to a man page, web site, or anything?
Todah Rabah...james