Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 20th, 2001, 03:15 AM
worldtouch worldtouch is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Milian, Italy
Posts: 357 worldtouch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Unhappy authenication ----show me!!! would u please!!!

[Fri Jul 20 15:12:07 2001] [error] [client 192.168.1.1] (13)Permission denied: Could not open password file: /home/jenny/apache/.htpasswd


I have chown and chgrp to "jenny" as well as chmod 777 .htpasswd.

The heaven has open its gate yet and I can get in!!!
as the rest of the stuff was show in the same series. I have also

-m paramter in ./htpasswd.


why??? I know freebsd knows this.

Folks, show me to newbie!!!

thanks!!!
Jenny.

Reply With Quote
  #2  
Old July 21st, 2001, 06:52 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If Apache is in a chroot environment (jail) at /home/jenny/apache, then the user Apache runs as has permission to read .htpasswd, which is in the same dir.

Say I am trying read your .htpasswd file via shell (not from web) and my current working directory is /usr/local, I first have to make sure I have READ permission to /home, if I can't even access to /home, then not to mention any subdirs under /home. Say I have access to /home directory, I still need permission to access /home/jenny, then /home/jenny/apache.

That said, chmod'ding .htpasswd to 777 alone doesn't help, you also need to chmod /home /home/jenny and /home/jenny/apache.

What permission should you chmod? That depends on what user Apache runs as. Say nobody, those directories should be chmod'ed 755. 755 is like drwxr-xr-x, note the r-x in bold, that's SEARCH ACCESS to a directory. Having search access allows you to view the directory listing. To allow nobody read access to .htpasswd, it needs to chmod 644, not 777, always minimize the permission if possible.

Reply With Quote
  #3  
Old July 23rd, 2001, 12:33 AM
worldtouch worldtouch is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Milian, Italy
Posts: 357 worldtouch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I was out of town and have no access to internet

I solve the problem now on both 7.0 and 7.1 last staruday morning.

Thanks folks!!!


that problem could have been for a long time if
I tried /directory/.htpasswd. it was due to the success implementation in solaris which I used "/export/home/jenny/apache/.htpasswd" and that equivalent to "/home/username/apache/.htpasswd"


jenny.

Reply With Quote
  #4  
Old July 23rd, 2001, 12:55 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
See, I asked you about whether your path is a symlink or not but you haven't replied to that question.

Reply With Quote
  #5  
Old July 23rd, 2001, 05:57 AM
worldtouch worldtouch is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Milian, Italy
Posts: 357 worldtouch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
no, I did not do a softlink

show me a site for setting sendmail. not sendmail.org but more
simple and easy understand setting up sendmail package for rh 7.1 or 7.0.

jennifer

Reply With Quote
  #6  
Old July 23rd, 2001, 06:15 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I asked you (from a message long time ago regarding the same issue) for the absolute file system path to your .htpasswd but you told me the wrong one.

I don't like sendmail because it's not as secure+fast+reliable+configurable as qmail (been using qmail for long time). Google.com has been the best search engine for this kind of stuffs, so start here -> http://www.google.com/search?q=redhat+sendmail

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > authenication ----show me!!! would u please!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway