Skip to content

Wrong permissions after install/update #5

@laurent-simon

Description

@laurent-simon

Jeedom runs on NGINX, so with the www-data user. To allow to execute all administration tasks from the browser, all Jeedom files must be owned by the www-data user (it's totally unsecure, but it's builds like that).

With these Docker images ( jeedom-data and jeedom-all-in-one ), after the installation and/or updates when the container starts, all Jeedom file permissions are messed up. The owner of Jeedom files is/becomes root instead of www-data. So Jeedom is not able to run properly.

Fix the file ownership manually is not a durable solution because, later on startup during the next update, the files ownership will be messed up again.

To fix it, in the /docker-entrypoint.sh script (or in /entrypoint.sh on an existing container), replace:

php /usr/share/nginx/www/jeedom/install/install.php mode=force

by:

sudo -u www-data -g www-data php /usr/share/nginx/www/jeedom/install/install.php mode=force

All files ownership problems will be fixed durably without altering Jeedom's installation/update scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions