Thread: How to run command that need root privileges?
hi! run simple command @ c++ this:
but how run command needs root privileges?code:if(system("command here`")) cerr << "error while trying use command 'command' specified folder! check folder's permissions etc.\n";
should show authentication dialog this:
i don't know..code:pkexec echo![]()
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
Post a Comment