Skip to content

[Howto]: Fix file/folder permission issues when creating new projects #11

@yppdr

Description

@yppdr

Have you already checked elsewhere?

What are you struggling with?

I’m experiencing file and folder permission issues when creating new projects with Devilbox. Specifically:

  • When I create a project via shell.sh or directly on my host, I sometimes cannot edit files or folders from the host or my IDE due to permission errors.
Image
  • Sometimes, the application is not accessible from my host, also due to permission issues.

I want to be able to both edit files from the shell and access the application from my host without running into permission problems.

I have checked my .env configuration and Docker setup, but I’m not sure how to properly synchronize permissions between the host and the container.

What have you tried already?

I have already tried:

  • Checking and modifying the HOST_UID and HOST_GID variables in .env to match my host user.
  • Creating projects both via shell.sh and directly in the ./data/www folder on the host.
  • Restarting containers after each permission change.
  • Manually changing folder permissions using chmod and chown.

Despite all this, the permission issues still occur, either when editing from the host/IDE or when accessing the application via the browser.

What is your goal?

My goal is to be able to create new projects in Devilbox and:

  • Edit all files and folders from the host or my IDE without encountering permission errors.
  • Access the applications via the browser from my host without any permission issues.

In short, I want the permission synchronization between the container and the host to work correctly for all projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions