Hi,<br>&nbsp;I want to write c code to change current user password.<br>The code first check for current password &amp; then set new password.<br>The code must use PAM API just like passwd utility.<br>Also code must work without user intervention ie only by argument current password &amp; new password are given.<br>



So, can any one know that already this work is done&nbsp; or&nbsp; i can use&nbsp; passwd&nbsp; utility in my c code using system command.<br>Also may be user may not root which is using this application.<br><br>Thanks.<font color="#888888"><br>


Ashish Yadav <br></font>