Samba-tool error

I usually just use the group stickybit, so if I have a group called sambagroup, I can do something like this:

mkdir dir01
chown :sambagroup dir01
chmod g+s dir01

then every new file or directory created inside dir01 will automatically have the sambagroup assigned. The sambagroup you can use in the samba.conf file.