
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.
11 thoughts on “Samba container: access under directory impossible”
Shine
It was and with me. We can communicate on this theme.
It is a pity, that now I can not express – there is no free time. I will return – I will necessarily express the opinion on this question.
Willingly I accept. In my opinion, it is an interesting question, I will take part in discussion. Together we can come to a right answer.
In my opinion you are not right. Let’s discuss. Write to me in PM.
At all is not present.
Rather useful message
Very amusing opinion
.. Seldom.. It is possible to tell, this 🙂 exception to the rules
In my opinion you commit an error. I can prove it. Write to me in PM, we will discuss.
In it something is. I will know, I thank for the help in this question.