Can't access files at localhost

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



On Fri, 2005-10-14 at 00:01 +0900, Dave Gutteridge wrote:
> > 1 - permissions for user apache to access directory.
> 
> I thought Apache was an application or a service. It's also a user in
> need of rights?
> 
> [dave@localhost ~]$ ls -ld /home
> drwxr-xr-x  4 root root 4096 Oct  4 19:45 /home
> [dave@localhost ~]$ ls -ld /home/dave
> drwx------  63 dave dave 4096 Oct 13 23:55 /home/dave
> [dave@localhost ~]$ ls -ld /home/dave/web
> drwxrwxrwx  3 dave dave 4096 Oct 11 06:20 /home/dave/web
> 
> > 
> > does user apache have ability to descend? _rwxr_xr_x
> 
> If I read the above results correctly, /home/dave/web/ should be open to
> anyone. So shouldn't apache also be able to read it?
----
chmod o+x /home/dave
----
> 
> > 2 - selinux ?
> 
> I seem to remember that for some setting ages ago, I had selinux
> disabled. But how can I be sure?
----
I'm never really sure on this...

cat /etc/sysconfig/selinux
----
> 
> > ps - changing permissions of a link is pointless, the permissions are
> > derived for the original file
> 
> Okay. Thank you for that tip.
----
You're welcome

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux