Yep, those would be the permissions...
Yep, those would be the permissions...
webserver: rwx r-x r-x me me
index.html: rw- rw- rw- me me
index2.html: rw- rw- rw- root root
403.html: rw- r-- r-- me me
before webserver has been compiled it is rwx r-- r-- but thats before so it shouldnt really matter
You have to understand the difference between ownership and permissions. In short, the owner (and root) can change permissions on a file. The permissions dictate who can read, write and execute the contents of the file. Your index.html is owned by user me, group me. The first group of rw- means the user "me" can read and write the file. The second group of rw- means any user in group "me" can read and write the file. The last group of rw- means anybody on the system can read and write the file.
For index2.html, user root can read and write. Anybody in group root can read, and anybody on the system can read.
For 403.html, user me can read and write. Anybody in group me can read, and anybody on the system can read.
If you want to test reporting of a 403 error, you need to change the permissions on index2 to something that can't be read by whoever is running the webserver*. You can actually do "chmod 000 index2.html" (don't worry, you can change the permissions back later).
* I say whoever is running the web server, because even though it's owned by me:me, if user "foo" of group "bar" invokes your web server, it runs under their permissions (unless you have the setuid and/or setgid bits set).
Now seriously, go read some good tutorials on Linux file ownership and permissions.
thanks for the help ill try this out in the morning and report back here
regards