title: Run shell command in jenkins as root user?
body: <p>I have recently started using Jenkins for integration. All was well until I was running jobs on master node without shell command but I have to run jobs on master as well as slave node which contains shell commands to. I am not able to run those shell commands as root user. I have tried</p>
  
  <ol>
  <li>Using <code>SSH Keys</code>.  </li>
  <li>Setting user name in shell commands. </li>
  <li>Using <code>sudo</code>.</li>
  </ol>
  
  <p>I am getting <code>permission denied</code> error every time I use any of the above methods.</p>