Re: Web based password changer
On Thu, Jan 22, 2004 at 10:31:45PM -0500, Tom White wrote:
> 1 - the debian passwd utility does not have the --stdin option, so I'm not quite sure how to set it up
use something like
(sleep 1; echo $oldpasswd; sleep 1; echo $newpasswd; sleep 1; echo $newpasswd) | passwd $user
> 2 - I wouldn't want to have it do it as root - would be more
> comfortable with a wrapper program of some kind that did some sanity
> checks and then changed uid's to the user in question, and then
> changed the password.
sudo will work.
/etc/sudoers may look like this
www-data ALL=(ALL) NOPASSWD: ADDUSER
DCLabs Pty Ltd