Apache doesn't read file permissions?

Apache doesn't read file permissions?

Post by Anton Chuppi » Thu, 28 Jan 1999 04:00:00



    Hi,

I'm running Apache 1.3.3 on IRIX machine, and I can't prevent it from
reading the files I want to protect. Even after I take -r- permissions
from the files and -x- permissions from directories, Apache would
display these files in the browser. How is it possible?

 
 
 

Apache doesn't read file permissions?

Post by Christopher Schul » Thu, 28 Jan 1999 04:00:00


One idea:

Take a look at what user the httpd processes are being run as.  If the
root user is being used, then apache will have access to every file on
your machine.  This is not good.

It's recommended that you use the user 'nobody' or 'http' instead of
root.

You can see how to change this and more general info at
http://www.apache.org/docs/mod/core.html#user

If httpd is not being run as root, see who is running it.  Then check
to see if these files you want to "protect" are also owned by that
same person.  That could also be a problem.



Quote:>    Hi,

>I'm running Apache 1.3.3 on IRIX machine, and I can't prevent it from
>reading the files I want to protect. Even after I take -r- permissions
>from the files and -x- permissions from directories, Apache would
>display these files in the browser. How is it possible?

--
Christopher Schulte

Replace usenet with chris to send mail.

will *never* get to me. I hate spam!

 
 
 

Apache doesn't read file permissions?

Post by Anton Chuppi » Thu, 28 Jan 1999 04:00:00


    Thanks a lot,
the problem was that I owned the httpd process. Although I didn't run it as
a root, it evidently had all permissions on all my files. As soon as I
changed the owner and the group the problem went away. I don't think I
encountered the same problem in an earlier version of Apache I used.

            Anton Chuppin.


> One idea:

> Take a look at what user the httpd processes are being run as.  If the
> root user is being used, then apache will have access to every file on
> your machine.  This is not good.

> It's recommended that you use the user 'nobody' or 'http' instead of
> root.

> You can see how to change this and more general info at
> http://www.apache.org/docs/mod/core.html#user

> If httpd is not being run as root, see who is running it.  Then check
> to see if these files you want to "protect" are also owned by that
> same person.  That could also be a problem.



> >    Hi,

> >I'm running Apache 1.3.3 on IRIX machine, and I can't prevent it from
> >reading the files I want to protect. Even after I take -r- permissions
> >from the files and -x- permissions from directories, Apache would
> >display these files in the browser. How is it possible?

> --
> Christopher Schulte

> Replace usenet with chris to send mail.

> will *never* get to me. I hate spam!

 
 
 

1. Error 'Permission denied' reading file from Network Appliance server

Hi!

We have files on Network Appliance servers shared between NT &
Solaris.

NT application locks/unlocks the region when writing to the file.
Solaris high performance application reads this file and receives
(from time to time) error 'Permission denied', but we know that the
file region has been already unlocked, as header of the file has
information about bytes to read.

If we retry read operation many times, we are able to read the chunk
of the file (usually we read by several MB chunks).

Does anybody know why we receive error 'Permission denied' and what is
the solution or workaround?

I appreciate your help.

Mike Fogelman

2. What mouse is Logitech Trackman?

3. su doesn't read user's shell init files?

4. Locking pages in memory

5. Bash 'umask' builtin doesn't set 'x' permissions?

6. Monitoring System Performance

7. Apache, embperl, mod_perl : require doesn't work and can't write to file

8. Xterm Font Size

9. rxvt doesn't reset file permissions of /dev/ttyp*

10. How to enable dir/file read permission in Apache?

11. patchadd/checkinstall failure ('nobody' /does/ have read permission on '.' and parents)

12. How to reset permissions on file with no read permissions

13. root can't read nfs files; permission denied