Can't install modules in Drupal 8 Ubuntu - Should I change owner? Its not the first time I install Drupal 8 on Ubuntu 15.10 (which I'm very new to) but it is indeed the first time when I can't install modules at it.



I ran the error at Google and After reading this document regarding to a similar problem in Drupal 7, and a few other docs, It seems I should do in terminal:

sudo chown -R www-data sites


Since I am new to Linux and I also know that Drupal 8's folder hierarchy has been changed a bit, and I'm not sure if its the right move (I'm afraid to make mess); Thus, I dedicate this question to senior developers which are also Linux veterans...
go to the folder where you installed Drupal 8. Ex:

cd /var/www/drupal


In you case, it looks like it's:

cd /var/www/html/benia


then

sudo chown www-data -R modules


Now try installing again.

To prevent other conflict, I would www-data all of your Drupal

cd /var/www/html/

sudo chown www-data -R benia