Click to See Complete Forum and Search --> : Apache and file ownership


Anjo
12-29-2003, 03:14 PM
Do all documents in Apache's document root need to be owned by user/group 'apache'? What I've done is moved the httpd document root to /home/httpd to save space on /, and added myself to the 'apache' group so I can alter files and what not. But any files I create myself are created with my username and effective group. Does this cause any read/write issues? Would I have to chown all documents to apache:apache whenever creating files? Thanks for the help

terets
12-31-2003, 03:45 PM
What rights are granted to the world? You can explicity give apache access and you can give the world access. Ownership matters for modifying files if the world has only read and/or execute permissions.

ie. if a file is owned by (user and group) terets:terets and the file permissions are:

rwx-rwx---- then only the user terets and the group terets can touch those files.

if the permissions are:

rwx-rwx-rx- then anyone can read and execute the files.

Does this help?

Anjo
01-01-2004, 06:26 PM
I think what happened was I changed permissions on a ton of files, and was trying to view one that was still owned by a user other than apache, but also not world readable, and I thought the permissions had already been set. Appears to be fine if I just o+r all files. Thanks