Skip to main content

Thread: How to run command that need root privileges?


hi! run simple command @ c++ this:

code:
if(system("command here`"))      cerr << "error while trying use command 'command' specified folder! check folder's permissions etc.\n";
but how run command needs root privileges?
should show authentication dialog this:

code:
pkexec echo
i don't know..

ok found it.. gksudo!


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk How to run command that need root privileges?


Ubuntu

Comments