You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Leo Fouseki <lf...@tampabay.rr.com> on 2003/07/16 02:20:39 UTC

[users@httpd] reading .htpasswd file

although configuration in httpd.conf shown below seems ok, and
permissions are set to most permissive on directory and .htpasswd file,
apache cannot open and read file, and thus browser denies access when
username and password are entered in user authentication pop up. problem
persists across browsers, and methods (i.e. <Directory...</Directory>>
vs. .htaccess). Error log confirms that apache cannot open .htpasswd
file created with .htpasswd, despite moving database to diffrent
directories. I have also tried changing users in httpd.conf. Thank
you.   

<Directory /var/www/html/*/public_html>
Options ExecCGI
AddHandler cgi-script .cgi
AllowOverride None
Order Deny,allow
Allow from all
</Directory>
#
<Directory /var/www/html/nella/>
AuthName nella
AuthType Basic
AuthUserFile /root/.userpass 
Require user nella
AllowOverride none
</Directory>




---------------------------------------------------------------------
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] reading .htpasswd file

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 18 Jul 2003, Richard Gration wrote:

> > <Directory /var/www/html/nella/>
> > AuthName nella
> > AuthType Basic
> > AuthUserFile /root/.userpass
> > Require user nella
> > AllowOverride none
> > </Directory>
>
>
> A small point, but ... shouldn't that be "AllowOverride AuthConfig" ?

No.  AllowOverride applies only to .htaccess files.

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] reading .htpasswd file

Posted by Jeff Cohen <su...@gej-it.com>.
No, these settings are valid for the httpd.conf file.
He should not override the directives that he has in httpd.conf file, unless
he's using .htaccess file under that directory, if these settings are being
written into an .htaccess file than they shouldn't be overrided by any other
.htaccess in the directory root from where it's pointing to.

All the best,
Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: Richard Gration [mailto:richard@zync.co.uk]
> Sent: Thursday, July 17, 2003 7:32 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] reading .htpasswd file
> 
> > <Directory /var/www/html/nella/>
> > AuthName nella
> > AuthType Basic
> > AuthUserFile /root/.userpass
> > Require user nella
> > AllowOverride none
> > </Directory>
> 
> 
> A small point, but ... shouldn't that be "AllowOverride AuthConfig" ?
> 
> 
> ---------------------------------------------------------------------
> 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] reading .htpasswd file

Posted by Richard Gration <ri...@zync.co.uk>.
> <Directory /var/www/html/nella/>
> AuthName nella
> AuthType Basic
> AuthUserFile /root/.userpass 
> Require user nella
> AllowOverride none
> </Directory>


A small point, but ... shouldn't that be "AllowOverride AuthConfig" ?


---------------------------------------------------------------------
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] reading .htpasswd file

Posted by Yoshiaki Saita <sa...@code.iis.toyama-u.ac.jp>.
You check AuthUserFile-name. Is it correct?

Also you check permission of ROOT directory.
Apache runs NOBODY user for default setting.
ROOT directory should set the permission +x for other group user.



> although configuration in httpd.conf shown below seems ok, and
> permissions are set to most permissive on directory and .htpasswd file,
> apache cannot open and read file, and thus browser denies access when
> username and password are entered in user authentication pop up. problem
> persists across browsers, and methods (i.e. <Directory...</Directory>>
> vs. .htaccess). Error log confirms that apache cannot open .htpasswd
> file created with .htpasswd, despite moving database to diffrent
> directories. I have also tried changing users in httpd.conf. Thank
> you.
>
> <Directory /var/www/html/*/public_html>
> Options ExecCGI
> AddHandler cgi-script .cgi
> AllowOverride None
> Order Deny,allow
> Allow from all
> </Directory>
> #
> <Directory /var/www/html/nella/>
> AuthName nella
> AuthType Basic
> AuthUserFile /root/.userpass
> Require user nella
> AllowOverride none
> </Directory>
>
>
>
>
> ---------------------------------------------------------------------
> 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] reading .htpasswd file

Posted by "Jeremy C. Reed" <re...@wcug.wwu.edu>.
On 15 Jul 2003, Leo Fouseki wrote:

> vs. .htaccess). Error log confirms that apache cannot open .htpasswd
> file created with .htpasswd, despite moving database to diffrent

What does that error log say?

  Jeremy C. Reed

  http://bsd.reedmedia.net/


---------------------------------------------------------------------
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] reading .htpasswd file

Posted by Jeff Cohen <su...@gej-it.com>.
Should be:

 <Directory /var/www/html/nella/>
 AuthName nella
 AuthType Basic
 AuthUserFile /root/.userpass
 Require valid-user
 AllowOverride none
 </Directory>

Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: Leo Fouseki [mailto:lfouseki@tampabay.rr.com]
> Sent: Tuesday, July 15, 2003 8:21 PM
> To: Apache Mailing List
> Subject: [users@httpd] reading .htpasswd file
> 
> although configuration in httpd.conf shown below seems ok, and
> permissions are set to most permissive on directory and .htpasswd file,
> apache cannot open and read file, and thus browser denies access when
> username and password are entered in user authentication pop up. problem
> persists across browsers, and methods (i.e. <Directory...</Directory>>
> vs. .htaccess). Error log confirms that apache cannot open .htpasswd
> file created with .htpasswd, despite moving database to diffrent
> directories. I have also tried changing users in httpd.conf. Thank
> you.
> 
> <Directory /var/www/html/*/public_html>
> Options ExecCGI
> AddHandler cgi-script .cgi
> AllowOverride None
> Order Deny,allow
> Allow from all
> </Directory>
> #
> <Directory /var/www/html/nella/>
> AuthName nella
> AuthType Basic
> AuthUserFile /root/.userpass
> Require user nella
> AllowOverride none
> </Directory>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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] reading .htpasswd file

Posted by Jeff Cohen <su...@gej-it.com>.
What does the error log say this time?

Jeff Cohen
Support@GEJ-IT.com
Tel. (416) 917-2324
www.GEJ-IT.com
GEJ-IT Networks!



> -----Original Message-----
> From: Leo Fouseki [mailto:lfouseki@tampabay.rr.com]
> Sent: Wednesday, July 16, 2003 11:53 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] reading .htpasswd file
> 
> my problem is reading the userpass file that .htpasswd created, so I
> considered it a problem with .htapasswd program.
> I've already tried with the require valid-user configuration, same
> results. I've really tried everything.
> On Tue, 2003-07-15 at 22:10, Jeremy C. Reed wrote:
> > Also, why does your subject line say ".htpasswd" but your AuthUserFile
is
> > "/root/.userpass"?
> >
> >   Jeremy C. Reed
> >
> >   http://www.isp-faq.com/
> >
> >
> > ---------------------------------------------------------------------
> > 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] reading .htpasswd file

Posted by Leo Fouseki <lf...@tampabay.rr.com>.
my problem is reading the userpass file that .htpasswd created, so I
considered it a problem with .htapasswd program. 
I've already tried with the require valid-user configuration, same
results. I've really tried everything. 
On Tue, 2003-07-15 at 22:10, Jeremy C. Reed wrote:
> Also, why does your subject line say ".htpasswd" but your AuthUserFile is
> "/root/.userpass"?
> 
>   Jeremy C. Reed
> 
>   http://www.isp-faq.com/
> 
> 
> ---------------------------------------------------------------------
> 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] reading .htpasswd file

Posted by "Jeremy C. Reed" <re...@wcug.wwu.edu>.
Also, why does your subject line say ".htpasswd" but your AuthUserFile is
"/root/.userpass"?

  Jeremy C. Reed

  http://www.isp-faq.com/


---------------------------------------------------------------------
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