#!/bin/bash set -e cat > /Library/LaunchDaemons/com.elements.VolumesFix.plist << EOF KeepAlive Label com.elements.VolumesFix ProgramArguments /bin/bash -c sleep 3; chmod 777 /Volumes RunAtLoad StandardErrorPath /dev/null StandardOutPath /dev/null UserName root EOF chmod 600 /Library/LaunchDaemons/com.elements.VolumesFix.plist cat > /etc/nsmb.conf << EOF [default] minauth=none streams=yes soft=yes notify_off=yes port445=no_netbios signing_required=false EOF launchctl load -w /Library/LaunchDaemons/com.elements.VolumesFix.plist launchctl start com.elements.VolumesFix