January 5, 201214 yr You ever run into that issue where you can't copy or FTP files up to your directory under /var/www/ for your new website? If you make /var/www writeable by its group and add the user to the group, that user will not have to use sudo. Try this: sudo usermod -a -G www-data [username]sudo chown -R root:www-data /var/wwwsudo chmod -R g+rw /var/www¨ The user should then be able to edit /var/www/ files without hassle.The first line adds the user to the www-data group, the second line clears up any files with messed up ownership, and the third makes it so that all users who are members of the www-data group can read and write all files in /var/www. This usually corrects issues of Apache DNS errors is giving the appropriate rights.
April 18, 201214 yr I'm having issues when updating my site with new files and its obvious its a permissions issue. When I try and run the above command I get the following error message. username is not in the sudoers file. This incident will be reported. Any idea's?
Create an account or sign in to comment