Remove 'sudo' from the commands for the shell provisioner.
These commands are executed as root.