Hi,
In the past I've had permissions problems..like when doing a mod sometimes instead of the cgi script running, in ie, the viewer will be prompted to download the whole cgi script...
So I want to ask, what is the general rule about permissions on files and directories?
My understanding is that cgi-bin and similar directories should be chmod'ed to 755, and the same for any scripts...this would mean that the owner can read, write and execute, and the group and the world can only read and execute, but not write. Am I correct?
But if the world can "read" all files, then will it be possible to stop them from reading cgi?
This is such a confusing topic because the behaviour in reality appears to be different than the many articles, books I've read dealing with this topic!
One final question...why is it necessary for a directory to have a permission? Doesn't the file's permission override the directory's permission? THANKS!
In the past I've had permissions problems..like when doing a mod sometimes instead of the cgi script running, in ie, the viewer will be prompted to download the whole cgi script...
So I want to ask, what is the general rule about permissions on files and directories?
My understanding is that cgi-bin and similar directories should be chmod'ed to 755, and the same for any scripts...this would mean that the owner can read, write and execute, and the group and the world can only read and execute, but not write. Am I correct?
But if the world can "read" all files, then will it be possible to stop them from reading cgi?
This is such a confusing topic because the behaviour in reality appears to be different than the many articles, books I've read dealing with this topic!
One final question...why is it necessary for a directory to have a permission? Doesn't the file's permission override the directory's permission? THANKS!