[SOLVED] Pi + Samba, access from mac

Nope.

That will not make a difference. Samba doesn’t know how to use sudo.

Did you think about using openHABian? It includes all tools useful for openHAB, including a fully working samba configuration. Instead of hacking around yourself you can have a system up in less than one hour that is known to work reliably. Also if you find room for improvement, you can discuss this in the community and everyone will benefit from it.