Re: c code to change current user password using PAM API



Hello

On Thu, 2008-07-10 at 00:58 -0400, ashish yadav wrote:
> Hi,
>  I want to write c code to change current user password.
> The code first check for current password & then set new password.
> The code must use PAM API just like passwd utility.
> Also code must work without user intervention ie only by argument
> current password & new password are given.
> So, can any one know that already this work is done  or  i can use
> passwd  utility in my c code using system command.

using passwd with pipes
http://svn.gnome.org/viewvc/gnome-control-center/trunk/capplets/about-me/gnome-about-me-password.c?view=markup


> 
> Thanks.
> Ashish Yadav  
>   
> _______________________________________________
> gnome-list mailing list
> gnome-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-list
-- 
Ritesh Khadgaray
Ph: +919970164885
Desktop LinuX N Stuff, RHCE
Software Maintenance Engineer, Pune, Red Hat
ॐ मणि पद्मे हूँ
Eat Right, Exercise, Die Anyway.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]