ltb-project / self-service-password

Web interface to change and reset password in an LDAP directory
https://self-service-password.readthedocs.io/en/latest/
GNU General Public License v3.0
1.16k stars 325 forks source link

Bug in the docker image ltbproject/self-service-password ( wrong permissions for /var/www/templates_c ) #1004

Open decio-fonini opened 6 days ago

decio-fonini commented 6 days ago

There's a small bug in the docker image (ltbproject/self-service-password 286f57711a09), which prevents SSP from starting:

The /var/www/templates_c directory has the wrong owner/permissions: root:root rwxr--r--

It should be writable by the user www-data, or else the SSP app will not work.

Workaround:

1) Copy the file /entrypoint.sh from a running container to the host; 2) Edit the copy, inserting a line like "chown www-data:www-data /var/www/templates_c" at the beginning of the script 3) Restart the container mapping this file over the original: ... -v :/entrypoint.sh ... 4) Profit!

decio-fonini commented 6 days ago

Autocorrect ate the brackets in the above message; #3 should read ...-v edited-file:/entrypoint.sh ...