Adding sudo in the script before each cp command did the trick.
View Tag Cloud
Ubuntu Forums Code of Conduct