I use Eclipse CDT to write an application. The application uses the third part API, which requires running as sudo to open raw sockets, etc.
On the command line, I can run the program somehow like
su ./program
But in the Eclipse CDT environment this will not work if I press Ctrl + F11 (Run-> Run Last Launched), I think the reason is that my Linux GUI login is not su.
Anyway, can I run as su (with su password) in an Eclipse CDT?
Thanks.
source share