No the script shouldn't change permissions thats considered a security bug , running in root is always suffice. However, your permissions are fine. Lets try to remove all the directories inside filesharing then hit apply and restart. After that restart your mac, add back the directories in the image I previous sent and hit apply and restart. Then try again.