Re: [users@httpd] Trying to access directory index outside doc root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Thanks for your help.  I think that the problem is file system
permissions.  My Apache processes are running as user and group
"apache", but the data under /home/kdo/working/excessinv is (of
course) owned by user "kdo".

One "fix" is to set all the permissions on my directories under
/home/kdo to 777.  It's insecure though.  Isn't there a way to tell
apache who own's a certain directory?  Maybe with the user and group
commands in a <Directory> block?


If you need apache to read under certain directory which it has no permission, you need to set all directories with at least exec permission to get there, and the directory of the data, with read permission.

example to the dir /home/data/www

4 drwxr-xr-x  9 root root 4096 mar 14 17:58 /home/
4 drwxr-----  37 data data 4096 abr  7 09:17 /home/data/

If data is set that way.. apache can't get any longer.
However

4 drwxr-xr-x  9 root root 4096 mar 14 17:58 /home/
4 drwxr----x  37 data data 4096 abr  7 09:17 /home/data/
4 drwxr-----  9 data data 4096 abr  7 09:17 /home/data/www/

Now he can't get any longer that /home/data/www

4 drwxr-xr-x  9 root root 4096 mar 14 17:58 /home/
4 drwxr----x  37 data data 4096 abr  7 09:17 /home/data/
4 drwxr--r-x  9 data data 4096 abr  7 09:17 /home/data/www/

That should be enough to apache to get there, and read the contents.



I hope this is helpful

Any help is appreciated!
Kevin

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux