[lug] automatic renice?

D. Stimits stimits at comcast.net
Sat Jun 18 10:52:04 MDT 2005


Bear Giles wrote:
> D. Stimits wrote:
> 
>> 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.
> 
> 
> So write a suid C wrapper.  It changes the nice level, changes the uid 
> and euid to the caller's uid, and execs the original program.

I was hoping for a general facility/system mechanism, rather than suid 
or customization of each program. Just thought it would be nice if 
/etc/sysconfig/ had something I didn't know about to set priorities.

D. Stimits, stimits AT comcast DOT net



More information about the LUG mailing list