Hi..
what I need to do is this: change a user's password from a C program.
I am thinking on the lines of using the system() call to call this command, as I have used the same to create new users(system(useradd....))
the problem is the "passwd" command is interactive..is there any way I can specify the password(or output of
crypt(password,salt)) and remove the interactivity?
Gnome has the change password option..so I think there should be a way...
Thanks in advance!

ps. The "useradd" command was also interactive,but it had a -p option to specify the password (ie, output of crypt(password,salt) )while creating user so that removed the interactivity.

[This message has been edited by sujita (edited 06-21-2001).]