httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Taylor" <ch...@phi-web.co.uk>
Subject Re: HTPASSWD
Date Fri, 09 Aug 2002 12:42:32 GMT
I'm guessing you're in Apache 2.0.39, there's a logic error in htpasswd that
creates this error. It has been fixed for 2.0.40.

If you want a working htpasswd, get it from a 2.0.36 version :) Inconvenient
I know, I can provide the windows .exe though. Email me if you want that.

Hope that helped.

Chris Taylor - chris@phi-web.co.uk - The guy with the PS2 Webserver :)
----- Original Message -----
From: "Philippe Dhont (Sea-ro)" <Philippe.Dhont@searo.be>
To: <users@httpd.apache.org>
Cc: <Owen.Boyle@swx.com>
Sent: Friday, August 09, 2002 12:37 PM
Subject: HTPASSWD


> It is still not working.
> What i exactly try is:
>
> Htpasswd -c /usr/local/netsaint/etc/htpasswd.users netsaintadmin
>
> This should normally work and i have no idea why it isn't
> I tried also
>
> htpasswd -c mypasswords.pwd joe
>
> Just for testing if it couldn't be in the path or something and i get the
> same output
> I get the same message:
> Htpasswd: -c and -n options conflict
>
>
>
>
> -----Original Message-----
> From: Boyle Owen [mailto:Owen.Boyle@swx.com]
> Sent: vrijdag 9 augustus 2002 12:18
> To: users@httpd.apache.org
> Subject: RE: htpasswd
>
>
> >From: Philippe Dhont (Sea-ro) [mailto:Philippe.Dhont@searo.be]
> >
> >I have a little problem;
> >When i use
> >Htpasswd -c /..../bla/blabla...
> >I get the message:
> >Htpasswd: -c and -n options conflict
> >
> >What's the cause of this? As i see it there is no connection
> >between -c and -n
>
> You see wrong. "-c" means create a file and put the user/pass pairs in it.
> "-n" means send the output to STDOUT. How can the program do both? They
are
> mutually exclusive...
>
> The normal procedure is:
>
> - Make a file to begin with:
>
> htpasswd -c mypasswords.pwd joe
> <type in password for joe>
>
> this creates the file mypasswords.pwd with one user/pass pair (i.e. joe)
> inside.
>
> - Later on, add more users:
>
> htpasswd mypasswords.pwd jim
> <type in password for jim>
>
> Note that there is now no "-c" switch since you no longer need to create
the
> file since it now exists. The user/pass for jim will be appended to the
file
> which now contains a user/pass pair for joe and jim.
>
> If you use the "-n" option, you get the user/pass pair on STDOUT (this
lets
> you use htpasswd as a system call in a pipeline or shell-script or
anything
> else), e.g.
>
> htpasswd -n joe
> <type in password for joe>
> joe:kjLNLO09.5W7
>
> or all on the commandline (add the "-b" switch).
>
> htpasswd -nb joe abcwxyz
> joe:kjLNLO09.5W7
>
>
> Rgds,
>
> Owen Boyle
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message