Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-1900

Suggestion for QProcess, running processes under a different user

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.4.0
    • Core: I/O
    • None

    Description

      It would be nice to have the following functionality in Qt in a platform independent manner.

      1) - The ability to run a process as a named user (plus password). When having
      a service that needs to run another program as a named user, the
      service knows the users login name and password, so at the moment it is possible call
      a windows api's (LogonUser, LoadUserProfile,
      ImpersonateLoggedOnUser, CreateEnvironmentBlock, CreateProcessAsUserA).
      It would be nice if I could simply use a QProcess to do this.

      2) - Enable QProcess to make use of Vista UAC prompts when running a
      program that requires elevation to administrator. I have currently coded
      this using the windows api ShellExecute, which propmts for permission
      to run the process elevated.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stormols Marius Storm-Olsen
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes