Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redhat 9 Apache2.0.49 authentication problem-no user

Status
Not open for further replies.

NutherNewbie

Technical User
May 9, 2004
6
US
I am brand new to Linux and apache. I have managed to install apache and get it running. I am trying to set up a website that will be password protected. I have followed everything I can find on the net about the configuration of AuthType etc. I have gotten the website to prompt me for a login name and password but when I type them in, I get the Authorization Required error (after the third try). The error logs show "no user found". I am obvoiusly missing something pretty simple here but I have checked my paths and they all seem to be correct.
Any help or suggestions would be greatly appreciated.
NutherNewbie
 
Please post

1) The directives you are using to protect the folder
2) Your passwd file
3) The path to the password file on the disk (change directory to the dir that the password file is in, type 'pwd' and paste the result here.

This will allow us to debug. It just sounds like the user you are trying to enter is not in the htpasswd file you created.
 
Hi and thank you in advance for your help.
The httpd.conf file is pretty much as it came. The parts that I have copied into here are the main items that I think I have fouled up. If you need more info than this I will post it as well.
I find that when adding another user to the htpasswd file, the new user does not show up.
Thanks,
Nuthernewbie

UserDir "disable"
TypesConfig "/etc/mime.types"
DefaultType text/plain
ScriptAlias /cgi-bin/ "/var/<Directory /var/AuthType Digest
AuthName Private
AuthDigestFile /var/require valid-user
require user User1 User2
</Directory>

Here is the path I used for my password file:
/var/This is what is shown in my passwd file:
User1:**2l##Xj&&y6%
 
Ok, I have changed it and get an internal server error when I try to authenticate.
The error log reads :
[Sun May 09 20:16:24 2004] [error] [client 11.101.11.11] client used wrong authentication scheme: /
[Sun May 09 20:16:34 2004] [crit] [client 11.101.11.11] configuration error: couldn't check user. No user file?: /

Any thoughts on this?
Thanks
 
Ok change it back t oDigest and past the error log lines here.

Tx
 
Changed back to Digest - Saved file - restarted - tried to authenticate - "Auth Req"

Here are the error logs:

Sun May 09 21:20:58 2004] [error] [client 11.101.11.11] (13)Permission denied: Digest: Could not open password file: /var/[Sun May 09 21:20:58 2004] [error] [client 11.101.11.11] Digest: user `user1' in realm `Private' not found: /
[Sun May 09 21:20:58 2004] [error] [client 11.101.11.11] (13)Permission denied: Digest: Could not open password file: /var/[Sun May 09 21:20:58 2004] [error] [client 11.101.11.11] Digest: user `user1' in realm `Private' not found: /
[Sun May 09 21:20:58 2004] [error] [client 11.101.11.11] (13)Permission denied: Digest: Could not open password file: /var/[Sun May 09 21:20:58 2004] [error] [client 11.101.11.11] Digest: user `user1' in realm `Private' not found: /
Thanks
 
So this tells you

Code:
(13)Permission denied: Digest: Could not open password file: /var/[URL unfurl="true"]www/passwds/passwd[/URL]

that apache can not see the passwd file.

Does the apache user have read permissions on this file?

Type this command and give us the output

Code:
ls -l /var/[URL unfurl="true"]www/passwds/passwd[/URL]
 
Another thought:
Is there any website that has a complete "Template" of an operating, basic, password protected, virtualhost server for just two ro three virtualhosts?
Thanks
 
The httpd.conf has examples.

Your problem is that you are trying to symlink your passwd file it looks like

Code:
[root@localhost root]# ls -l /var/[URL unfurl="true"]www/html/ae7mc/passwds/passwd[/URL] -rwxr-xr-x    1 root     root           48 May 11 19:11 /var/[URL unfurl="true"]www/passwds/passwd[/URL]

Put /var/
in your conf file instead of

/var/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top