Re: File Permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux