Is it possible to start a fully independant process with QProcess with elevated user privilleges?
For example if my c++/qt application is run as a limited user, can my c++/qt application start another independant process with admin rights?
I am implying that the admin username and password is available inside the c++/qt application that is doing the launching of the 3rd party application.
In windows you should create a manifest for your application that specifies the privilege level it needs to run in. Then all you have to do is start the application. You will get a UAC prompt on newer windows version. But that is required and (IMHO) correct. There is no way of going around this.
Under linux you should on installation set a sticky bit to your application with the correct user-rights for what you want to do.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With