Making smb share follow permissions setting. Setting share to fail if permissions is an array since it's not currently supported. Adding ability for smb share to have write access.