LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Starting a program with Nice value < 0 as a non-root user (https://www.linuxquestions.org/questions/linux-software-2/starting-a-program-with-nice-value-0-as-a-non-root-user-4175528953/)

redbot 12-21-2014 05:16 PM

Starting a program with Nice value < 0 as a non-root user
 
I have some games that seem to benefit from being renice'ed (as in, the "renice" command) to a negative "nice" value. However, to do so I have to fire up a root login.

I'm about ready to write a renice wrapper to be run setuid root which can search for the games in the output of the "ps" command and renice them accordingly, but I feel like I must be re-inventing a wheel.

Is there an existing way to let users launch certain programs with negative "nice" values, or re-nice them to negative "nice" values, without root privileges?

veerain 12-21-2014 11:51 PM

Only root or user from wheelers group can set nice value less than zero. Other users can only change it to above zero.


All times are GMT -5. The time now is 04:00 PM.