[arch-general] Understanding permissions

Maurí­cio briqueabraque at yahoo.com
Thu Apr 16 08:30:46 EDT 2009


Hi,

I'm using lighttpd as http server, and it
complains about permissions when I ask for
a file on my public_html directory. Using
strace on lighty I get:

stat("/home/mauricio/public_html", 0x7fffceb2dcb0) = -1 EACCES (Permission denied)


However, using ls:

ls -ld public_html public_html/index.html

drwxr-xr-x 3 mauricio users 4096 2009-04-13 19:41 public_html
-rw-r--r-- 1 mauricio users 4075 2009-04-13 19:41 public_html/index.html


Since 'r' is there in all users field, should
not every user, including 'http' used by
lighty, be able to read?

Thanks for your help,
Maurício



More information about the arch-general mailing list