hoellen/dockerfiles

Add www-data user

Closed this issue · 2 comments

eloo commented

Hi,

i'm curious if it makes sense to add the www-data(991) user to the image.
As this user (or better this id) is used for the permissions for the folders and also for the config.

What do you think?

Best regards
eloo

Hello eloo,

it should be no problem, that the user doesn't exists in /etc/passwd as long as all of the numeric UIDs line up. On startup the process starts with the same UID as you data and config folder.

That makes it easier to change the UID by yourself with the environment variable (UID=991). No need to add the user in the startup script.

As a note: The upstream project from the Nextcloud Docker image (Wonderfall/docker-nextcloud) will update the image heavily, soon. I will adopt these changes to this image as well, for both security and maintenance reasons. With this change, permissions will work little differently (e.g. there will be no root process anymore, which changes the permissions on startup).

You can read more about it here: Wonderfall/docker-nextcloud#80

Regards
hoellen

eloo commented

Hi,
okay.. then from my side we can close this issue.

Thanks