LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   user/group permissions for /var/www/html/ (https://www.linuxquestions.org/questions/linux-software-2/user-group-permissions-for-var-www-html-114650/)

illtbagu 11-10-2003 10:47 PM

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

Bluesuperman 11-11-2003 12:16 AM

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.

trickykid 11-11-2003 12:17 AM

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.

stuNNed 11-11-2003 12:57 AM

i have it apache.apache with permissions chmod -R 555

illtbagu 11-11-2003 10:49 AM

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

illtbagu 11-11-2003 08:03 PM

Well according to this article the suggestions here are almost right (no disrespect intended)
http://www.squirrelmail.org/wiki/en_...oryPermissions

chmod 300 data

markus1982 11-12-2003 05:29 AM

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.