Problem to execute as root user a shell script in Linux

Yes the agent will execute as root
Make sure your environment is OK see this tip