I am quite new to ubuntu and I have been trying to install BuilderEngine, a content management system, to my ubuntu server 12.04 lts. I have figured some things out but I am struggling with permission for files and folders. I know I have to change the permission for folders and files in /var/www/ to be able to read and write files. But I am not sure what to do.
All I know is never use chmod -R 777 /var/www/ because that can read/write/excute files.
Was thinking of trying sudo chown -R www-data:www-data /var/www/ but not sure.
useradd: user '[myusername]' already exists, and I still can't write to /var/www/ to start working on websites – khaverim Sep 06 '14 at 00:56sudo usermod -a -G GROUP USERwhere GROUP is the desired existing group and USER is the desired existing user – Yehonatan Tsirolnik Dec 02 '14 at 17:03/var/www/* -Rso for examplesudo chgrp www-data /var/www/* -R– Yehonatan Tsirolnik Dec 02 '14 at 17:10