Discussion Locked

changing password of Linux User from web

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Dear Techies,
I am working on a web-application which is a web based email client on Linux Server.
I have SENDMAIL server on Linux, i want to give facility to my web-users to change their password on their own, from the web based interface.
waiting for the reply badly.

7 replies

by stoker

This is not the whole answer you are looking for, just some hints;
You need a cgi-wrapper that can execute a script as a different user. To do this as root is extremely risky, you really need to make sure the scripts are as secure as possible.
I would suggest to approach with a different track, keeping the e-mail users password files in a different location and execute the wrapper as another system user with access to these files only. Many of the shared-web-hosting solutions (control panels)out there do things like this, they have the wrapped scripts executed as the user of the main account, then all the mail for this domain is authenticated/fwd with content of these 'private' files.
Maybe looking for opensource control panel solutions will give some clues?
Good luck :)

by sukrith

there is an utility called poppassd, it's a perl/cgi script. i have tried it 2 years back and working fine from the web.

This discussion is closed to new replies.