This question about Configuration: Answered

Is the email address needed in .htpasswd?

As documented in Question567, our wiki can't send mails at the moment (but we're working on that). This means Reset Password is sort of useless and we do that manually by SSH to the server.

But when we use htpasswd to reset a user's password, his email address is also removed from .htpasswd and we must manually re-enter that, too.

Why must the email address be in the .htpasswd file? What happens if the email addresses are not there?


Then the user will not be able to use any mail notifications.

You could use some tool to generate the proper encrypted password and simply replace the password, using htpasswd -n user, and then use your favorite editor to replace the password part of it.

Or use sed or perl: perl -i -ple '$user="HisUsername";$pass="HisEncodedPassword"; s/^$user:[^:]*:/$user:$pass:/o' /path/to/.htpasswd

ALERT! You have to manually replace HisUsername and HisEncodedPassword with their values.

-- OlivierRaginel - 13 Sep 2010

Then the user will not be able to use any mail notifications.
Thank you very much, that is a clear response!

-- TorbenGB - 14 Sep 2010

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.0.9
Status Answered
Topic revision: r3 - 14 Sep 2010, TorbenGB
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy