Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Unix password

Status
Not open for further replies.

mah6430

Programmer
Oct 30, 2003
1
US
First off, I am not a c programmer, but I'm tasked with finding if something is even possible.

We have an application that prompts a user for password on login. There is backend c code that validates this password against the user's unix password.

Unfortunately, we now need the capability to allow the user to change their password from the application. The user's do not currently have telnet capability.

Can a c program be written that would allow this application to modify the unix password - if so, any ideas on where I can crib some code?

Thanks in advance,
Michael
 
did you ask in the c/c++ forum? I know that can be possible, I don't know how, but I guess you can have something like the "system(password user)" command, to call a OS command from the C program.

cheers.
 
I don't know C programming, but to get over the passwd permissions problem, you could implement sudo

Kind Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top