Re: Who should own html files?

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

 



Arthur Pemberton wrote:
On 6/20/06, Knute Johnson <knute@xxxxxxxxxxx> wrote:
I'm setting up my HTTP server and I'm not sure who should own my html
files.  These are not user files but the files I keep in my document
root, /var/www/html.  Currently they are owned by root:root.

What about cgi script files in /var/www/cgi-bin?  I wouldn't think
you would want them owned by root?

You don't want any of those files owned by root. Ideally, they should
be owned by the user who will be editing them. Otherwise, you can let
them be owned by apache (or whatever your httpd is running as)

You don't want them owned by apache unless you have a web app running that needs to be able to write to them. It's a security issue otherwise, since a compromised/broken web server could overwrite your HTML files.

They should be owned by whoever will be editing them, as Arthur said. If nobody's going to be editing them, having them owned by root is fine.

Paul.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[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