[wellylug] Chmod settings for web directory?
Ewen McNeill
ewen at naos.co.nz
Thu May 1 10:35:05 NZST 2003
In message <BAD6A6C8.E03%zrx1100 at paradise.net.nz>, zrx1100 writes:
>Can some tell me the exact shell command to set an entire directory so it is
>viewable in a web browser? I normally do this GUI.
chmod a+rx /path/to/directory
chmod a+r /path/to/directory/*
This ensures the webserver can access the directory (read and execute
privileges required normally; in some situations you can get away with
just execute), and that the webserver can read all the files in the
directory.
It also assumes that the webserver needs access as "other users" (rather
than the group, etc). This is the most common setup in my experience.
Ewen
More information about the wellylug
mailing list