title: Execute shell commands using nodejs with root access
body: <p>I want to execute the following shell commands inside a nodeJs application.
  If i am doing the work manually, the commands are as following:</p>
  
  <pre><code>sudo su
  password
  1 command that needs a root access
  exit
  </code></pre>
  
  <p>Any idea or a code snippet will be helpful</p>