From owner-freebsd-questions@FreeBSD.ORG Sun Jul 13 23:57:12 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDD0E37B401 for ; Sun, 13 Jul 2003 23:57:12 -0700 (PDT) Received: from datasphereweb.com (12-212-67-226.client.attbi.com [12.212.67.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 3D34A43FA3 for ; Sun, 13 Jul 2003 23:57:12 -0700 (PDT) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 52166 invoked from network); 14 Jul 2003 06:57:11 -0000 Received: from evrtwa1-ar17-4-47-114-001.evrtwa1.dsl-verizon.net (HELO bartxp) (4.47.114.1) by datasphereweb.com with SMTP; 14 Jul 2003 06:57:11 -0000 From: "Derrick Ryalls" To: "'admin'" , Date: Sun, 13 Jul 2003 23:54:55 -0700 Message-ID: <002501c349d4$d8b23d40$0200a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <20030714063616.M92191@enabled.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: RE: .htpasswd creation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 06:57:13 -0000 >=20 >=20 > On Sun, 13 Jul 2003 23:18:36 -0700, Derrick Ryalls wrote > > > can somebody explain to me how to create a .htpasswd > > > password? I dont want to use online password generators. > >=20 > > http://httpd.apache.org/docs-2.0/howto/auth.html >=20 >=20 >=20 > okay thanks, >=20 > OS: FreeBSD 4.8 > Apache: 1.3.27 >=20 > but I am having the strangest issue with my .htaccess file >=20 > --- snip --- >=20 > AuthName "Protected Area Name" > AuthUserFile /usr/local/www/data/phpMyAdmin/.htpasswd > AuthType Basic > Require user noah >=20 > --- snip --- >=20 > shell# htpasswd -c .htpasswd noah > New password: > Re-type new password: > Adding password for user noah >=20 > okay so I have the proper files in place. =20 >=20 > shell# ls -l .ht* > -rw-r--r-- 1 root wheel 121 Jul 13 23:36 .htaccess > -rw-r----- 1 root wheel 19 Jul 13 23:33 .htpasswd > shell# pwd > /usr/local/www/data/phpMyAdmin >=20 > my browser asks for a password but I never get allowed past=20 > the password popup. > I assume you have that directory marked in your httpd.conf. Apache recommends putting all the config stuff that would go in .htaccess in httpd.conf if you are the admin. I believe that htaccess stuff is the same for 1.3.x and 2.x, so here is what I have on a 2.x system: AuthType Basic AuthName "Clan Files" AuthUserFile /usr/local/www/passwords Require user fishhead Note: my password file is not in a web publishable area, doesn't need to be and was created from the link above. So try using this method and doing a apachectl restart and see if it fixes it for you. -Derrick