I have an existing cmake project which i am opening with qtcreator. it is build successfully but the generated executable has to be run as root since it needs a connection to the eth0 interface.
I have no possibility to add these "custom build settings" (it's disabled) and if i try to
ssh-askpass Sudo Password | sudo -S bash /to/my/executable/file
i got an
cannot execute binary file
error. i don't want to run qtcreator as root. is there any possibility to ask for the root password while running the executable. i am pretty new to cmake and qtcreator.
i'd appreciate any help.
thanx!