mktemp creates the temp directory 700 only. If the sudo-user is not root, the other user will not be able to run the command (Permission denied error). This adds the executable bit for all on the temp directory.