title: Open bash shell as root -script
body: <p>I need to write a program in C which opens bash shell as root. I could not find a function which would be do that. I try something like that:</p>
  
  <pre><code>system("bash");
  </code></pre>
  
  <p>but i don't know what next</p>