Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8581949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:10:23+00:00 2026-06-11T21:10:23+00:00

Suppose i start a process p1 using QProcess. The process p1 requires root privileges,

  • 0

Suppose i start a process p1 using QProcess. The process p1 requires root privileges, so can we pass on password to process p1 without human intervention, of course password being read from some location

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:10:24+00:00Added an answer on June 11, 2026 at 9:10 pm

    You might consider using setuid tricks to perhaps have a helper executable, started by your application, which is setuid root and runs the appropriate things.

    Beware when doing that, there is a security risk if you don’t code very carefully. You should ensure that this internal helper executable is only started by your application. (It could communicate with it, eg thru pipes or other IPC).

    (You could also configure sudo or super very carefully)

    Notice that setuid is tricky. I strongly recommend reading several documentations on it,
    notably Advanced Unix Programming and Advanced Linux Programming. And read them carefully and several times. Read also carefully execve(2) and credentials(7) man pages (and others). Misunderstanding setuid is a huge security risk.

    Don’t forget to minimize the program using setuid tricks. In particular, don’t make your whole Qt application setuid, just make a small helper program setuid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose code like this: class Base: def start(self): pass def stop(self) pass class A(Base):
Suppose I'm following TDD and using VS/ReSharper. I start out writing a test like
In .Net, suppose I instantiate an object that starts an asynchronous process (using Delegate.BeginInvoke
Suppose you start with an auto-generated method public void setKey(Key key) { this.key =
I'm running a process from inside a windows service using: ProcessStartInfo processStartInfo = new
I'm using System.Diagnostics.Process to execute an svn command from a windows console application. This
I have a high-priority process that needs to pass data to a low-priority process.
I have a file, which is in XML format (consists just of root start
I am using RCF for Inter Process Communication in a project. Is there a
I'm using Starling and Workling to process background tasks in my application, a Swoopo-style

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.