Search code examples
dockerpowershellprestashopfile-permissions

wrong permissions on windows files and folders (contained in a docker container)


I just installed Prestashop image with docker, but when I want to access the admin URL (of type http://localhost:8080/adminxxxxx), I get a 403 error, "You don't have permission to access this resource.".

I know that on linux files should be with 755 permissions and folders with 644 permissions.

But I don't know how to settle theses permissions in Windows, any help ?

Thank you !

p.s: the files of the Prestashop images can be found here on Windows: \wsl$\docker-desktop-data\version-pack-data\community\docker\overlay2\e0bab9108e266a7c48cf73b1f7545a9d6b9ed914b1d47edf898bb1a1ed71cfff\diff\var\www which apparently belongs to the network folder.


Solution

  • I actually started the CLI and executed the appropriate commands (chmod), and it's working. So I guess the folder permissions concerned were for the virtual folders.