Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-13-2010, 04:19 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 9

Rep: Reputation: 0
Apache file permissions


What are the best file persmissions and owner for web files?

Is it root.root? or root.www-data? ....

Old 12-13-2010, 04:47 AM   #2
Senior Member
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
You will typically want the files to be owned by a user, such as root, that limits the write permissions (to root only). This will help to prevent anyone from changing the files should they gain control of Apache. You can then make the files group read permissive and use a group such as www-data as Apache needs to be able to read, but not write, to the files. This would give you root.www-data. Directories, of course, need to have executable permissions.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache file permissions problem. {Apache/2.2.6 Fedora 8} hacker supreme Linux - Server 5 01-31-2008 03:26 PM
Apache and File Permissions Matir Linux - Security 6 08-13-2005 12:22 AM
File Permissions with Apache Herbalist Linux - Networking 5 06-17-2005 01:39 PM
File permissions with apache deee Linux - Newbie 3 03-31-2004 02:24 PM
Apache and File Permissions notstrider Linux - Networking 1 03-14-2003 11:44 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration