Hi, It depends on web-server architecture and how many sites you are going to run inside /var/www.
root:root is good for /var/www if you are running many sites in /var/www. Let's say: /var/www/example.org /var/www/example.net /var/www/sub.example.org Each of these directory has to be owned as www-data:www-data if you use only www-data user to manage all virtual hosts and unix_user:www-data in case of multi-user virtual host based web server. It's a quick tip, all depends on your needs and web server's architecture. Regards, Sasha Armindo Silva wrote: > Shouldn't be owned by www-data so apache can write there? > > On Fri, Aug 14, 2009 at 11:06 PM, James Dinkel <[email protected] > <mailto:[email protected]>> wrote: > > 755 owned by root.root > > > On Fri, Aug 14, 2009 at 4:11 PM, Michael S. Mason <[email protected] > <mailto:[email protected]>> wrote: > > Hello Community Team: > > What is the default permissions for /var/www (?) > > Should this be set to any of the following: > > 775= user can exec, read and write, group can exec read and > write, and > all other users can read and execute. > 755= same as above, but group can only read and exec. > > 777= all users on your machine can do anything in files/dirs set > with > this acl. Remember, even if you are the only physical user on the > machine, all processes (apache, ftpd, postfix, etc) are users on > your > machine and will be able to do bad stuff if 1) the code is buggy and > happens to try to delete everything, or 2) if the process gets owned > by evil hacker eddie. > > Thanks! > Michael > > -- > ubuntu-server mailing list > [email protected] > <mailto:[email protected]> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-server > More info: https://wiki.ubuntu.com/ServerTeam > > > > -- > ubuntu-server mailing list > [email protected] <mailto:[email protected]> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-server > More info: https://wiki.ubuntu.com/ServerTeam > > > > > -- > > > > -- > "The only way of discovering the limits of the possible is to venture a > little way past them into the impossible." > Sir Arthur C. Clarke > -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
