[lug] automatic renice?

Timothy Klein tck at silverklein.net
Fri Jun 17 16:19:44 MDT 2005


On Jun 17, 2005, at 4:12 PM, D. Stimits wrote:

> Zan Lynx wrote:
>
>> Or, you could rename x2x to x2x.real and make a shell script  
>> called x2x
>> that does: exec nice --1 x2x.real
>>
>
> This latter would not work, unless I make some sort of sudo  
> retrofit. Renice to negative values (I'm increasing priority of  
> x2x) requires root, but non-root will be running it.

Or you could make a few line C program that calls system(), and set  
that SUID.  That'd get around that no-SUID shell script thing.  I  
suppose you could even release root privileges before you ran x2x  
from the C program.

Tim



More information about the LUG mailing list