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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing password from php?

Status
Not open for further replies.

inetd

Technical User
Joined
Jan 23, 2002
Messages
115
Location
HK
I want to write a web page to let the user change their password in linux. How can I do that in php? What should I do besides writing php code?

Thanks.
 
You would have to interface with the shadow libraries if you are using them, because the [tt]passwd[/tt] program only accepts input from a terminal/psuedoterminal and you have to be the superuser to change other users passwords, which would mean that you would have to run your webserver as the superuser, which is a bad idea. //Daniel
 
You'd be better using a C++ CGI program... It would be even more prefered to use a java applet that talks to telnet server... It'd be sort to wrte, could only be run from your site to your telnet port and has the added bonus of using the telnet server's security settings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top