Hos to mask directories and files in Zentyal
you can mask files and directories by editing not the smb.conf but the smb.conf.mas in zentyal. To do this go to
nano /usr/share/zentyal/stubs/samba/smb.conf.mas
In you [global] section add the following:
create mask = 0775 <-- or whatever you need directory mask = 0775 <-- or whatever you need
Reboot your server and your mask is active.
That's all.
Your ArtIT Team