HP3000-L Archives

January 1998, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Korb <[log in to unmask]>
Reply To:
John Korb <[log in to unmask]>
Date:
Thu, 22 Jan 1998 13:18:43 -0500
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (72 lines)
Hello all, I'm running the freeware NCSA web server and am trying to set
up password authentication on selected subdirectories.  I read the
documentation and tried to restrict a subdirectory "restricted".
Unfortunately, it doesn't seem to work when I try to set up multiple
users, each with their own password.  I used the htpasswd program that was
distributed with the Apache server to enter the passwords
(/APACHE/PUB/apache_1.2.1/support/htpasswd).  It had worked fine when I
set up just one user and password.

So, what am I doing wrong?  Below are listings of the files I've set up.
The file ".pwd.list" documents the passwords I entered via the htpasswd
program.


shell/iX> ls -la restricted
total 23
drwxr-xr-x   2 MGR.WWW           WWW          704 Jan  8 22:50 .
drwxrwx---  16 MGR.WWW           WWW         3776 Jan 22 12:59 ..
-rwxrwxr--   1 MGR.WWW           WWW         1280 Jan  8 22:30 .htaccess
-rwxrwxr--   1 MGR.WWW           WWW         1280 Jan  8 22:40 .htgroup
-rwxrwxr--   1 MGR.WWW           WWW           99 Jan  8 22:43 .htpasswd
-rwxrwx---   1 MGR.WWW           WWW         1280 Jan  8 22:45 .pwd.list
-rwxrwxr--   1 MGR.WWW           WWW         1280 Jan  8 22:50 index.html
shell/iX> cat restricted/.htaccess
AuthUserFile /WWW/WWW/httpd_1.3/htdocs/restricted/.htpasswd
AuthGroupFile /WWW/WWW/httpd_1.3/htdocs/restricted/.htgroup
AuthName Restricted
AuthType Basic

<Limit GET>
require group my-users:
</Limit>
shell/iX> cat restricted/.htgroup
my-users: john roy nasser ralph warren
shell/iX> cat restricted/.htpasswd
john:4g0rg2Llqxtpg
roy:w.eBSfF9xH6DE
nasser:L5tR8o3YHt4JY
ralph:hsYJMOKkpmEl2
warren:xWwFCce.f4ywc
shell/iX> cat restricted/.pwd.list
Users and Passwords:
john           tron
roy            mary
nasser         skiing
ralph          gibson
warren         travel
shell/iX> cat restricted/index.html
<html>
<head>
<title>Restricted Page - Multiple Users</title>
</head>
<body bgcolor="FFFFFFFF" link="0000AF" vlink="00007F">
<h1>You Passed!</h1>
Congratulations!  You made it past the password authentication!
</body>
</html>
shell/iX>



Thanks for any help!


John
--------------------------------------------------------------
John Korb                            email: [log in to unmask]
Innovative Software Solutions, Inc.

The thoughts, comments, and opinions expressed herein are mine
and do not reflect those of my employer(s), or anyone else.

ATOM RSS1 RSS2