Hi,
You could use sudo with the full path to the script.
But it appears your permissions are not set up correctly which might cause other problems. I would suggest you redo the permissions in https://webwork.maa.org/wiki/Installation_Manual_for_2.17_on_Ubuntu#Setting_Permissions
Arnie