title: Linux, Eclipse CDT run as su
body: <p>I am using Eclipse CDT to write an application. The application uses a third part API, which requires to run as sudo, in order to open raw sockets, etc.</p>
  
  <p>In command line, I can run the program something like</p>
  
  <pre><code>su
  ./program
  </code></pre>
  
  <p>But in Eclipse CDT environment, it won't work if I press Ctrl + F11 (Run->Run Last Launched), I guess the reason is that my Linux GUI login is not su.</p>
  
  <p>Is there anyway that I can run as su (with su password) in Eclipse CDT?</p>
  
  <p>Thanks.</p>