I am facing problems with CGI Auth. The username and password I supplied
always mismatch. The following is the output from the error_log file:
[Notice]Apache1.3.26(Unix) mod_perl 1.27 -configured ---resuming normal
[Notice]Accept Mutux :sysvsem:(default sysvsem)
[Error]:[client 22.214.171.124] user root: authentication failure for
"/cgi-bin/BackupPC_Admin" :password mismatch.
I set my Backuppc user to be root.
In the .htaccess file, at the first time I put:
After I hit the cgi interface, I got the file not existing error.
Then I found the passwd file in my linux pc is in /etc/passwd.
So I changed the .htaccess file to be
But this time, I got the mismatch error.
After that, I even want to defeat the auth. As in the doc,
I put this
Setenv REMOTE_USER www
in the httpd.conf file. But this also doesn't work. I still
have the above mismatch error.
So where is wrong with it?
Thanks in advance.
Chat with friends online, try MSN Messenger: http://messenger.msn.com
At 12:06 -0400 21/08/02, Jinqiao Yu wrote:
>In the .htaccess file, at the first time I put:
> AuthGroupFile /etc/httpd/conf/group
> AuthUserFile /etc/http/conf/passwd
> AuthType basic
> AuthName "access"
> require valid-user
>After I hit the cgi interface, I got the file not existing error.
>Then I found the passwd file in my linux pc is in /etc/passwd.
You should create the passwd file using the htpasswd program included
Ex: htpasswd -c /etc/httpd/conf/passwd jinqiaoyu
I don't think that you can use your existing /etc/passwd file; maibe
an Apache module could do this, but I'm not very familiar with this.
Check out http://httpd.apache.org/docs/howto/htaccess.html for more
Logidac Tech., Beaumont, Qu=E9bec, Canada - http://logidac.com/
PGP Key and more: http://guillaume.filion.org/ (this will redirect)
PGP Fingerprint: 14A6 720A F7BA 6C87 2331 33FD 467E 9198 3DED D5CA