samba-in-kubernetes / samba-operator

An operator for a Samba as a service on PVCs in kubernetes
Apache License 2.0
120 stars 24 forks source link

Set share.permissions.method to none on read only shares? #323

Closed pfaelzerchen closed 11 months ago

pfaelzerchen commented 11 months ago

To be honest, I have some kind of special use case. So feel free to close this feature request.

I am using longhorn as storage provider and have a couple of RWX PVCs that I want to share read only via samba. longhorn mounts RWX shares with nfs 4.1 which does not support Extended Filesystem Attributes. So, the samba-operator fails on them. I wasn't able to find out, how to get the mount to nfs 4.2 so far.

Therefore, I took the generated Ressources, removed the SmbShare and deployed everything by hand. Before, I changed the config map and set permissions.method to "none". Everything works fine.

So probably this could be the default behaviour of the samba-operator or at least an option?

phlogistonjohn commented 11 months ago

Thanks for the feedback. There are known issues with running samba on top of nfs but as you discovered, the permissions handler we're using by default makes it even worse. There's already an issue on that topic so I'll close this one - but only as a duplicate of #309.