HI

on a fresh installation, impossible to me to install modules or themes

"Failed to install one project, Permissions are not set up properly."

here is my /var/www/html directory

l# ls -al
total 9308
drwxrwsr-x 9 root     root        4096 Aug 10 00:13 .
drwxr-xr-x 3 root     root        4096 Aug  9 18:13 ..
drwxrwsr-x 2 www-data www-data    4096 Aug  9 18:37 backdrop
-rw-r--r-- 1 www-data www-data 9461955 Aug  8 00:39 backdrop.zip
drwxrwsr-x 9 www-data www-data    4096 Aug  9 18:31 core
drwxrwsrwx 8 www-data www-data    4096 Aug 10 10:50 files
-rw-rw-rw- 1 www-data www-data     578 Aug  7 22:39 index.php
drwxrwsr-x 2 www-data www-data    4096 Aug  9 18:31 layouts
drwxrwsr-x 2 www-data www-data    4096 Aug  9 18:31 modules
-rw-rw-rw- 1 www-data www-data    3978 Aug  7 22:39 README.md
-rw-rw-rw- 1 www-data www-data    1216 Aug  7 22:39 robots.txt
-rw-rw-rw- 1 www-data www-data   15990 Aug  9 19:09 settings.php
drwxrwsr-x 2 www-data www-data    4096 Aug  9 18:31 sites
drwxrwsr-x 2 www-data www-data    4096 Aug  9 18:31 themes

So, what I have to do ?

Accepted answer

This is not my area of expertise, however I can point you at some documentation on the issue:

https://backdropcms.org/file-permissions-and-ownership

Comments

I did it with a user (Looser Permissions Configuration) but issue is the same

$ ls -al
total 9308
drwxr-sr-x 9 aroev aroev    4096 Aug 10 00:13 .
drwxr-xr-x 3 root    root       4096 Aug  9 18:13 ..
drwxr-sr-x 2 aroev aroev    4096 Aug  9 18:37 backdrop
-rw-rw-r-- 1 aroev aroev 9461955 Aug  8 00:39 backdrop.zip
drwxr-sr-x 9 aroev aroev    4096 Aug  9 18:31 core
drwxr-sr-x 8 aroev aroev    4096 Aug 10 10:50 files
-rwxrwxr-- 1 aroev aroev     578 Aug  7 22:39 index.php
drwxr-sr-x 2 aroev aroev    4096 Aug  9 18:31 layouts
drwxr-sr-x 2 aroev aroev    4096 Aug  9 18:31 modules
-rw-rw-r-- 1 aroev aroev    3978 Aug  7 22:39 README.md
-rw-rw-r-- 1 aroev aroev    1216 Aug  7 22:39 robots.txt
-rw-rw-r-- 1 aroev aroev   15990 Aug  9 19:09 settings.php
drwxr-sr-x 2 aroev aroev    4096 Aug  9 18:31 sites
drwxr-sr-x 2 aroev aroev    4096 Aug  9 18:31 themes

 

In both the stricter and looser configuration shown here: 
https://backdropcms.org/file-permissions-and-ownership

The group has write permissions for the modules and themes directory. In your update, it would appear that the group does NOT have write permissions. I recommend that you try giving the group write access with "aroev" as owner and group. Remember, that these are the contrib directories in Backdrop CMS.

Example:

drwxrwxr-x 19 kris     kris      4.0K Aug  2 10:11 modules/
drwxrwxr-x  2 kris     kris      4.0K May 24 21:44 themes

Are you using apache or nginx? 
Are you sure user running apache is really www-data?

I'm using apache

I try using some doc and now I have

drwxrwxr-x 2 www-data www-data    4096 Aug 13 11:58 backdrop
-rw-rw-r-- 1 www-data www-data 9461955 Aug  8 00:39 backdrop.zip
drwxrwxr-x 9 www-data www-data    4096 Aug 13 11:57 core
drwxrwxr-x 8 www-data www-data    4096 Aug 13 12:25 files
-rwxrwxr-- 1 www-data www-data     578 Aug  7 22:39 index.php
drwxrwxr-x 2 www-data www-data    4096 Aug 13 11:57 layouts
drwxrwxr-x 2 www-data www-data    4096 Aug 13 11:57 modules
-rw-rw-r-- 1 www-data www-data    3978 Aug  7 22:39 README.md
-rw-rw-r-- 1 www-data www-data    1216 Aug  7 22:39 robots.txt
-rw-rw-r-- 1 www-data www-data   15990 Aug 13 12:08 settings.php
drwxrwxr-x 2 www-data www-data    4096 Aug 13 11:57 sites
drwxrwxr-x 2 www-data www-data    4096 Aug 13 11:57 themes

but nothing change

I my /etc/apache2/envvars I have

export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data

 

I try to put everything in 777 and issue persists

I try change www-data by my user as it say on doc but nothnig change !!

 

@tuxrougue - have you had any luck with your permissions related issues?