Sudo and real-time priorities

From: Cédric Pillonel (cedric.pillonel_at_swisscom.com)
Date: 07/05/05

  • Next message: Dennis Peere: "xpp for RedHat Enterprise"
    Date: Tue, 5 Jul 2005 08:50:10 +0200
    
    

    In my C++ application I want to set real-time priorities to my POSIX threads
    by calling pthread_setschedparam(). Real-time priorities can only be set by
    root and my application is started by a non-root user.
    I have tried to add an entry for this user in the 'sudoers' file (with
    NOPASSWD) and then to start my application with a sudo command but setting
    real-time priorities is still unsuccessfull.

    How could my application gain root privilege to set real-time priorities?
    Any other idea?

    I'm running Linux Redhat 9.

    Thank you.


  • Next message: Dennis Peere: "xpp for RedHat Enterprise"

    Relevant Pages

    • Sudo and real-time priorities
      ... In my C++ application I want to set real-time priorities to my POSIX threads ... root and my application is started by a non-root user. ... How could my application gain root privilege to set real-time priorities? ...
      (comp.os.linux.development.system)
    • Sudo and real-time priorities
      ... In my C++ application I want to set real-time priorities to my POSIX threads ... root and my application is started by a non-root user. ... How could my application gain root privilege to set real-time priorities? ...
      (comp.os.linux.misc)
    • Re: Sudo and real-time priorities
      ... > root and my application is started by a non-root user. ... > NOPASSWD) and then to start my application with a sudo command but setting ... > real-time priorities is still unsuccessfull. ...
      (comp.os.linux)
    • Re: Sudo and real-time priorities
      ... > root and my application is started by a non-root user. ... > NOPASSWD) and then to start my application with a sudo command but setting ... > real-time priorities is still unsuccessfull. ...
      (comp.os.linux.development.system)
    • Re: Sudo and real-time priorities
      ... > root and my application is started by a non-root user. ... > NOPASSWD) and then to start my application with a sudo command but setting ... > real-time priorities is still unsuccessfull. ...
      (comp.os.linux.misc)