You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Stephen Colson <sc...@westpole.com> on 2003/03/06 15:58:58 UTC

[users@httpd] htaccess problem

I'm having a bit of an issue with htaccess. I've inherited a site that is 
changing servers. The htaccess works fine on the origional server, but not 
the new one even though the htaccess files point to the same htpasswd file. 
I've already checked the possibility of a permissions issue, and that doesn't 
appear to be it. Below are my htaccess file, errors, and listing of the 
directory containing the htpasswd files. Thanks!

-s


#Begin htaccess file
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README*

<Limit GET POST>
order deny,allow
allow from all
require valid-user
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthType Basic
AuthName Members_Only
AuthUserFile /home/sites/home/htaccess/.htpasswd
AuthGroupFile /dev/null
#End htaccess file

#Begin error
[Wed Mar  5 09:46:28 2003] [error] (2)No such file or directory: access to 
{path to html file} failed for {my ip}, reason: User not known to the 
underlying authentication module
#end error

#begin ls
[root@www htaccess]# ls -la
total 7
drwxrwsr-x    2 admin    home         1024 Mar  5 09:41 .
drwxrwsr-x    8 nobody   home         7168 Mar  5 09:44 ..
-rw-r--r--    1 admin    home           42 Mar  5 09:41 .htpasswd
#end ls

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htaccess problem

Posted by Stephen Colson <sc...@westpole.com>.
Found the answer, so I figured I'd post it here so someone else searching the 
archives can find an answer:
The short answer is mod_auth_pam.

The longer answer is that on the raq's (and many other installs), mod_auth_pam 
is installed (http://pam.sourceforge.net/mod_auth_pam/). The nature of this 
plugin is contrary to what I was trying to accomplish. What I needed to do 
was add a line to the top of my .htaccess or access.conf file:
AuthPAM_Enabled off

This fixes it.

-s


On Thursday 06 March 2003 11:18 am, Joshua Slive wrote:
> On Thu, 6 Mar 2003, Stephen Colson wrote:
> > Not entirely. My understanding of it was that apache on the raq's will
> > first check the system file, then if there was no match, would try to
> > auth against any other defined ACL. This is how every other raq i've seen
> > works anyway...
>
> Well, I don't have direct experience iwth the raqs.  I just have
> experience with the dozens of confused people that turn up on apache
> mailing lists and newsgroups because of the modifications they've made to
> apache.
>
> In general, if you have an auth problem with the raq, you need to bring it
> up with Sun, because there is no way for anyone else to know exactly what
> hacks they've done.
>
> Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htaccess problem

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 6 Mar 2003, Stephen Colson wrote:

> Not entirely. My understanding of it was that apache on the raq's will first
> check the system file, then if there was no match, would try to auth against
> any other defined ACL. This is how every other raq i've seen works anyway...

Well, I don't have direct experience iwth the raqs.  I just have
experience with the dozens of confused people that turn up on apache
mailing lists and newsgroups because of the modifications they've made to
apache.

In general, if you have an auth problem with the raq, you need to bring it
up with Sun, because there is no way for anyone else to know exactly what
hacks they've done.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htaccess problem

Posted by Stephen Colson <sc...@westpole.com>.
Not entirely. My understanding of it was that apache on the raq's will first 
check the system file, then if there was no match, would try to auth against 
any other defined ACL. This is how every other raq i've seen works anyway...

-s


On Thursday 06 March 2003 10:51 am, Joshua Slive wrote:
> On Thu, 6 Mar 2003, Stephen Colson wrote:
> > Yep, I've tried that. I don't know how much it matters, but some more
> > details--the system is a raq3. While I haven't had issues with other
> > raq3's out there, maybe there is something I'm overlooking. Additionally,
> > if I add a user to the system user file (/etc/passwd) it works fine.
>
> Exactly.  The raq boxes use a special custom auth module that works out of
> /etc/passwd rather than the apache-specified password file.
>
> Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htaccess problem

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 6 Mar 2003, Stephen Colson wrote:

> Yep, I've tried that. I don't know how much it matters, but some more
> details--the system is a raq3. While I haven't had issues with other raq3's
> out there, maybe there is something I'm overlooking. Additionally, if I add a
> user to the system user file (/etc/passwd) it works fine.

Exactly.  The raq boxes use a special custom auth module that works out of
/etc/passwd rather than the apache-specified password file.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htaccess problem

Posted by Stephen Colson <sc...@westpole.com>.
Yep, I've tried that. I don't know how much it matters, but some more 
details--the system is a raq3. While I haven't had issues with other raq3's 
out there, maybe there is something I'm overlooking. Additionally, if I add a 
user to the system user file (/etc/passwd) it works fine.

-s


On Thursday 06 March 2003 10:13 am, Tom Ray wrote:
> Have you tried to add a user and then log in as the new user? There are a
> few methods in how the htaccess password is encrytped and store and if a
> machine doesn't emply that method then the htpasswd file would fail. I
> would try making a brand new htpasswd and compare the password encryption
> and see if they are following the same format.
>
> -----Original Message-----
> From: Stephen Colson <sc...@westpole.com>
> To: users@httpd.apache.org
> Date: Thu, 6 Mar 2003 09:58:58 -0500
> Subject: [users@httpd] htaccess problem
>
> > I'm having a bit of an issue with htaccess. I've inherited a site that
> > is
> > changing servers. The htaccess works fine on the origional server, but
> > not
> > the new one even though the htaccess files point to the same htpasswd
> > file.
> > I've already checked the possibility of a permissions issue, and that
> > doesn't
> > appear to be it. Below are my htaccess file, errors, and listing of the
> > directory containing the htpasswd files. Thanks!
> >
> > -s
> >
> >
> > #Begin htaccess file
> > IndexIgnore .htaccess */.??* *~ *# */HEADER* */README*
> >
> > <Limit GET POST>
> > order deny,allow
> > allow from all
> > require valid-user
> > </Limit>
> > <Limit PUT DELETE>
> > order deny,allow
> > deny from all
> > </Limit>
> > AuthType Basic
> > AuthName Members_Only
> > AuthUserFile /home/sites/home/htaccess/.htpasswd
> > AuthGroupFile /dev/null
> > #End htaccess file
> >
> > #Begin error
> > [Wed Mar  5 09:46:28 2003] [error] (2)No such file or directory: access
> > to
> > {path to html file} failed for {my ip}, reason: User not known to the
> > underlying authentication module
> > #end error
> >
> > #begin ls
> > [root@www htaccess]# ls -la
> > total 7
> > drwxrwsr-x    2 admin    home         1024 Mar  5 09:41 .
> > drwxrwsr-x    8 nobody   home         7168 Mar  5 09:44 ..
> > -rw-r--r--    1 admin    home           42 Mar  5 09:41 .htpasswd
> > #end ls
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> > Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] htaccess problem

Posted by Tom Ray <to...@blazestudios.com>.
Have you tried to add a user and then log in as the new user? There are a
few methods in how the htaccess password is encrytped and store and if a
machine doesn't emply that method then the htpasswd file would fail. I
would try making a brand new htpasswd and compare the password encryption
and see if they are following the same format.

-----Original Message-----
From: Stephen Colson <sc...@westpole.com>
To: users@httpd.apache.org
Date: Thu, 6 Mar 2003 09:58:58 -0500
Subject: [users@httpd] htaccess problem

> I'm having a bit of an issue with htaccess. I've inherited a site that
> is 
> changing servers. The htaccess works fine on the origional server, but
> not 
> the new one even though the htaccess files point to the same htpasswd
> file. 
> I've already checked the possibility of a permissions issue, and that
> doesn't 
> appear to be it. Below are my htaccess file, errors, and listing of the
> directory containing the htpasswd files. Thanks!
> 
> -s
> 
> 
> #Begin htaccess file
> IndexIgnore .htaccess */.??* *~ *# */HEADER* */README*
> 
> <Limit GET POST>
> order deny,allow
> allow from all
> require valid-user
> </Limit>
> <Limit PUT DELETE>
> order deny,allow
> deny from all
> </Limit>
> AuthType Basic
> AuthName Members_Only
> AuthUserFile /home/sites/home/htaccess/.htpasswd
> AuthGroupFile /dev/null
> #End htaccess file
> 
> #Begin error
> [Wed Mar  5 09:46:28 2003] [error] (2)No such file or directory: access
> to 
> {path to html file} failed for {my ip}, reason: User not known to the 
> underlying authentication module
> #end error
> 
> #begin ls
> [root@www htaccess]# ls -la
> total 7
> drwxrwsr-x    2 admin    home         1024 Mar  5 09:41 .
> drwxrwsr-x    8 nobody   home         7168 Mar  5 09:44 ..
> -rw-r--r--    1 admin    home           42 Mar  5 09:41 .htpasswd
> #end ls
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org