Changing permissions to 777 [rwxrwxrwx] is not advised, unless you want unauthorized users to have full access to the data. Permissions should be set to 770 [rwxrwx—], or, at most, 775 [rwxrwxr-x] (774 [rwxrwxr–] is also acceptable).
If it’s a CIFS share that is set up with Windows ACLs, make sure you create the folder from Windows, then symlink it via the GUI or CLI. You’ll know this is correctly set up if there is a plus sign “+” following the permissions [rwxrwxr-x+]. The plus sign indicates the folder is setup with ACLs.
Please note, if the share is to be used on Windows, permissions must be set to a minimum of 5, otherwise the file will not be able to be read from within Windows.