Samba container: access under directory impossible

If like me, you use a Samba container (SMB) to share your files and you have a problem accessing the subfolders of this share. We may have the same problem.

I installed the “mekayelanik/samba-server-alpine” and “dperson/samba” container on a Debian 10, the sharing is clearly visible, the 1st folder level too, but impossible to go to the lower levels.

I thought it was a file rights problem, but no! it’s a security issue on the system, the reason is AppArmor.

It must be deactivated when creating the container:

On the command line you must add this:

--security-opt apparmor=unconfined

Using docker-compose.yml, add this to the file:

...
    security_opt:
      - seccomp:unconfined
...

And voila! This should resolve your issue.

Leave a Reply