[lug] automatic renice?

Bear Giles bgiles at coyotesong.com
Fri Jun 17 16:50:20 MDT 2005


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.



More information about the LUG mailing list