[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [vps-mail] Coding Question re Mailman script ... Never mind.



Hello,

I am on the Verio VPS2, the -b option works flawlessly for me.  You must
have an existing user and password file to use this.  And I am not on Apache
2.

Try it on your VPS1, just go into a temp folder if you wish, and create the
file by "htpasswd -c .htpass test" and you will be prompted for a password
and a confirmation password.  Verify by going to your browser and try to
access the folder, you will be prompted for username and password.
Then back to the shell and type "htpasswd -b .htpass test password" and you
will have updated the folder htaccess with the user test and password of
password.
Verify your change by accessing the folder again, try the old password, then
the new one.


John

-----Original Message-----
From: owner-vps-mail@xxxxxxxxxxxx [mailto:owner-vps-mail@xxxxxxxxxxxx] On
Behalf Of Abigail Marshall
Sent: Tuesday, February 10, 2004 4:46 AM
To: Abigail Marshall
Subject: Re: [vps-mail] Coding Question re Mailman script ... Never mind.


It seems that I'm always answering my own questions.

Through creative googling, I found the solution to my
problem [Verio version of htpasswd doesn't support -b flag]
... someone wrote a Perl script that deals with the problem, and called it
htpasswd-b - it is here:
http://www.intuitive.com/wicked/examples/htpasswd-b.html

Works like a charm.

And for what it's worth, I think the problem with the
htpasswd script on the VPS1 is just that it's old -
apparently the -b option is something that comes with Apache
2, and we're running Apache 1.3.27.

If anyone would like to have the scripts, let me know & I'll post them. Both
the mm_htaccess and htpasswd-b are short shell scripts.


-Abigail



AM> Scott,

AM> I've run into a problem with coding a script concerning mailman, and 
AM> I'm starting to think it's a unique VPS issue.

AM> Here is what I am doing:

AM> I want to use a Mailman list to provide the user names and passords 
AM> for http authentication on a particular site.

AM> There is a script in the FAQ's for Mailman to export the Mailman 
AM> username/password for a specific list to a designated .htpasswd 
AM> file.

AM> There is line in the script as follows:
AM> htpasswd -b ~/var/tmp/.htpasswd.$LIST $i $PASS

AM> The variables are working fine - so you don't have to worry about 
AM> them.

AM> My problem is that when I run it, I get this error message:

>> Usage: htpasswd [-cm] passwordfile username
>> The -c flag creates a new file.
>> The -m flag forces MD5 encryption of the password.

AM> I suspect that the Verio version of htpasswd has been modified in 
AM> some way to disallow the batch mode [-b] flag. (See 
AM> http://httpd.apache.org/docs/programs/htpasswd.html for a list of 
AM> all options).

AM> Am I correct?

AM> If so, is there a way to enable this?

AM> I realize that the batch mode is not considered secure, but Mailman 
AM> passwords are sent out unencrypted, so security is not much of an 
AM> issue here. We're not guarding the crown jewels; we simply want a 
AM> rudimentary level of protection.

AM> Anyway, I'd appreciate whatever help you can give.

AM> -Abigail

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).



======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: