user/group permissions for /var/www/html/
What should be the permissions for /var/www/html/. It is defaulted as
user=root group=root shouldn't this be User=apache Group=apache Thats what it is indicating in the http.conf file. I cant seem to get a clear answer to this one, and before I make this change I just wanted to clerify the answer. Because I have read that user s/b apache and groupe s/b root. Thanks, AD |
It really does not matter -- I have apache 2.X built and have left the default document root, but under a user (the one I normally ) I have create a www directory containing htdocs and cgi-bin. This is where I have a virtual host enter point to for my web server default and some other request.
This way this user can make changes to the web site and root access is not required. Michael. |
Its really your choice. I have my html directory for my website as:
User: drew Group: web drew is my own account and web is the group I created, etc. |
i have it apache.apache with permissions chmod -R 555
|
well thanks guys for helping me to clarify this. It must not be to big of a deal what the permissions are then. But I think I will stay with what have read apache/apache for now. I just wanted to know if there was a standard :)
Thanks again, AD |
Well according to this article the suggestions here are almost right (no disrespect intended)
http://www.squirrelmail.org/wiki/en_...oryPermissions chmod 300 data |
Well it does not matter if your permissions are 755, but when choosing more restrictive permissions (which you SHOULD do for security reasons), it should be 640. So you have a user, let's call that one ftp and a group let's say web and the files are owned by ftp with group web.
|
All times are GMT -5. The time now is 03:27 PM. |