I followed this page Local Disk - RaiDrive Document to mount a onedrive to local/public and setup SMB.
Now, I can connect to this share from another macOS machine. But when I tried to write a file to it. It will create a file with the same name but 0 size. And report error that it can not write to it.
I can confirm it’s not because of the permission on SMB share. Because I have a real local disk have the same share settings can be written to without problem.