.htaccess in Apache 1.2 authentication error

.htaccess in Apache 1.2 authentication error

Post by Paul Venezi » Fri, 28 Mar 1997 04:00:00

I'm having an odd problem with htpasswd on a Linux box running Apache

I can create the .htaccess file:

AuthUserFile /var/bb/www/.htpwd
AuthGroupFile /var/bb/www/.htgroup
AuthName System Monitor
AuthType basic
<Limit GET POST>
require valid-user

and run htpasswd -c .htpwd test to create the passwd file and enter user
"test". I then enter the password for the user. When I access the page,
I get the dialog to enter name/password, and I enter the correct name
and password. I then get an Authorization Failed notice, and the error
log shows a "type mismatch" error. I can change passwords and add users
to my hearts content, but I can't access the page with any of the
accounts created. The directory specified is also set as the document
root in the Apache conf files.

I've made sure that .htpwd, .htgroup, and .htaccess are world-readable,
exist in the appropriate directory, and specified that .htaccess is the
file that httpd checks when loading a page (that works, the dialog
appears) but I can't get a valid login.

Note: The above .htaccess file and associated .htpwd and .htgroup files
work fine under Apache 1.2 on a BSDI box.

Any ideas?

Paul Venezia - MonadNet System Administrator



1. htaccess not being read? (apache 1.2)

Very strange.  I have a .htaccess file, taking from a WORKING htaccess
configuration on a Netscape server.

The .htaccess file is in DocumentRoot of the current server.  There are
no virtual hosts on this server.

I exit Netscape and re-load.  When I access the server's root page, no
authentication is ever requested.

Any help is greatly appreciated.


.htaccess file contents:

dev1:/usr/local/apache/htdocs> cat .htaccess
AuthUserFile /usr/local/apache/lib/passwd
AuthGroupfile /usr/local/apache/lib/group
AuthName NEA Internal
AuthType Basic

<Limit GET POST>
require group nea

dev1:/usr/local/apache/htdocs> ls -la .htaccess
-rw-rw-r--   1 jgarzik  nea          167 May 19 10:56 .htaccess

dev1:/usr/local/apache/htdocs> ls -la /usr/local/apache/lib
total 8
drwxrwxr-x   2 jgarzik  nea          512 May 19 10:53 .
-rw-rw-r--   1 jgarzik  nea           72 May 19 10:57 group
-rw-rw-r--   1 root     nea          207 May 19 10:53 passwd

2. problem with the vertical bar character

3. Apache 1.2 mod_usertrack & .htaccess files

4. X problem

5. Apache 1.2 and .htaccess woes.

6. add_install_client problem

7. Q: Internal Server Error 500 on Apache 1.2

8. (WANTED) XFree86-2.1 server for Weitek POWER9000 chip

9. "couldn't spawn child process error" on Apache 1.2/IRIX 6.2

10. Error Running Apache 1.2 on Solaris

11. Apache 1.2 compile error re: _crypt

12. Apache .htaccess & authentication

13. Apache authentication- .htaccess