File Permissions

Tim ignored_mailbox at yahoo.com.au
Tue Feb 20 05:38:50 UTC 2007


Jim Douglas:
>> I recently transferred a website from one host to another and have many
>> issues which I believe can be resolved by changing the file permission after
>> ftp'ing the ste to my box..
>>
>> What is the best way to change file and directory ownership to my apache
>> server?


Dotan Cohen:
> man chown
> man chmod

And for completeness' sake, you want to own your files, or root, but not
Apache (you don't want any exploits to be able to re-write files).  They
should be world readable, directories world executable.  Group
permisions aren't important, unless playing with the Apache xbit hack.

e.g. rwx---r-x   root  root   /var/www/html/
     rw----r--   root  root   example.html
     rw----r--   jim  jim     homepage.html

You may also need to play with SELinux contexts.  There's a FAQ about
that on the Fedora website:
<http://fedora.redhat.com/docs/selinux-apache-fc3/>

-- 
(This box runs FC6, my others run FC4 & FC5, in case that's
 important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.





More information about the fedora-list mailing list