Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

File permission issues using fpfis/httpd-php-dev #37

@vever001

Description

@vever001

Hello,

I'm having permissions issues every time files get created by the container and I need to chown the files to my host user to be able to edit them.

The container uses root (uid=0 gid=0) so when it creates files (using e.g: drush config:export or files created in sites/default/files and many other cases) I can't edit them on phpstorm running on my host machine with my current user "herve" (uid=1000 gid=1000).
I then need to sudo chown the files to my host user to be able to edit them - sudo chown herve:herve -R ...

If I'm not mistaken, this could be solved by creating a user in the container with matching uid and gid, and run shells as that user. Similar to how it's done in wodby/php.

Can you confirm you also have this behavior with file permissions? Or is it just me?
If so, is there perhaps already a consensus on having to chown every time files created by the container (which is a bit painful IMO) or is there something we can do to fix this?

Thank you,
Hervé

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions