|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
[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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
See, I asked you about whether your path is a symlink or not but you haven't replied to that question.
|
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > authenication ----show me!!! would u please!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|