Re: [Dovecot] Changing password for users
I downloaded and examined it; it's just a wrapper for /usr/bin/passwd, and there doesn't seem an easy way to modify it to use something other than the system password file.
Maybe replace "/usr/bin/passwd" with htpasswd?
and is there another way other than poppassd?
Write your own PHP script -- it couldn't be more than a few dozen lines of code for a working skeleton. Or Google "php change password htpasswd".
Joseph Tam <jtam.home@gmail.com>
At 3PM -0700 on 26/10/12 you (Joseph Tam) wrote:
Try pam_pwdfile with poppwd or some other poppassd that supports PAM.
It's not as simple as you seem to think. Quite apart from getting the password-changing itself right (have you considered what happens when two users change their passwords at the same time? when Dovecot tries to read the password file at the same time as you are changing it? when the system crashes when you are halfway through rewriting the password file?), you really shouldn't be running PHP as a user with write access to a password file (even a virtual password file) in any case.
Ben
participants (2)
-
Ben Morrow
-
Joseph Tam