*BSD News Article 81263


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!hunter.premier.net!feed1.news.erols.com!insync!gryphon.phoenix.net!pflores
From: pflores@alpha1.phoenix.net (Paul Flores)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Apache & FreeBSD & secure pages
Date: 21 Oct 1996 22:20:53 GMT
Organization: Phoenix Data Net (713) 486-8337 http://www.phoenix.net
Lines: 34
Message-ID: <54gt05$4m9$1@uhura.phoenix.net>
References: <54g8rq$jrr@tilde.csc.ti.com>
NNTP-Posting-Host: alpha1.phoenix.net
X-Newsreader: TIN [version 1.2 PL2]

inacio@micro.ti.com wrote:
: Hello all,

: 	I'm trying to get Apache to serve up some "secure" web pages.  I have the 
: web server configured so that it asks for a username and password at the correct 
: pages, but I can never seem to get a match.  (i.e. when I type in my username and
: password, I always get rejected with a mistmatch on password.)  I suspect that it
: is in the password file I made.  I took my passwd from master.passwd and pasted
: it into the web server passwd file.  I used to run CERN HTTPD, and it came with
: a utility htadm it add people to password files, but I had the same problem
: that web server --- could not match passwords.  I took it as an omen and
: upgraded!

: 	I'm running FreeBSD 2.1.0, Apache 1.1.1.  I think things other than where I
: located Apache on my computer are very normal.

: Does anybody know of a utility that adds users to this file?  Does anybody know
: what's wrong  and better yet, how to fix it?

: Can you PLEASE send email to me, as well as posting to the group.


	Chris,
	In the Apache distribution, there is a program called htpasswd.
It will create/manage the password file for the web server.

If I remember the verbage correctly:  ./htpasswd -c <password file> <Username>

Also, FYI, you will need to EXTRA_LIB = -lcrypt to get this to compile on
FreeBSD.

Paul Flores
Charter Communications/Phoenix Data Net