*BSD News Article 98606


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!zdc!super.zippo.com!newshub.csu.net!csulb.edu!gatech!howland.erols.net!news-peer.sprintlink.net!news-sea-19.sprintlink.net!news-in-west.sprintlink.net!news.sprintlink.net!Sprint!207.67.253.7!atmnet.net!news.lightside.com!user63.lightside.com!user
From: fred@lightside.net (Fred Condo)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD, Apache and htpasswd
Date: Fri, 27 Jun 1997 00:17:23 -0700
Organization: Lightside, Inc.
Lines: 44
Message-ID: <fred-2706970017240001@user63.lightside.com>
References: <5ou64q$jlq@news.vcnet.com>
NNTP-Posting-Host: user63.lightside.com
Mime-Version: 1.0
Content-Type: text/plain;charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Newsreader: MT-NewsWatcher 2.3.1
X-no-archive: yes
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43615

In article <5ou64q$jlq@news.vcnet.com>, jamoses@vcnet.com (Jim Moses) wrote:

>Hello,
>
>I run a webserver Apache 1.2 on a Free BSD 2.1.6 Intel machine.  I have an 
>htaccess file and a .htpasswd file.  They ARE correctly written and placed.  
>htpasswd compiled flawlessly and generated the .htpasswd file.  I wrote the 
>htaccess file for un/pw authentication.
>
>htaccess is:
>
>AuthUserFile /usr/local/www/default/.htpasswd
>AuthGroupFile /dev/null
>AuthName Admin
>AuthType Basic
>
><Limit GET>
>require admin

I believe what you want here is:

require valid-user

></Limit>
>
>htpasswd is at /usr/local/www/default/.htpasswd and
>looks like this:
>
>admin:G6tXAWsg87hUo
>
>The web browser correctly challenge the user when the directory 
>under the html root is accessed, but It will not pass 
>authentication.  Authentication continues to fail!  Any ideas what is wrong.  
>I needed no library modifications to find the crypt() function when htpasswd 
>was compiled.
>
>
>Thanks,  Jim Moses

-- 
http://www.lightside.net/~fred/ + net access + http://www.lightside.net/
"Attempts to control the use of encryption technology are wrong in
principle, unworkable in practice, and damaging to the long term economic
value of the information networks." - UK Labour Party