Subj : Re: Setting priorities as a regular user To : comp.os.linux From : adams_forum Date : Mon Aug 30 2004 06:02 pm Sybren Stuvel wrote in message news:... > Adam enlightened us with: > > Is it possible to allow a specific user to be allowed to create > > processes with any priority (niceness)? After all, I trust myself > > not to hog the CPU! > > You could make a program that is setuid root, which then sets the > niceness level, drops to a mortal level and exec()s your program. > > Sybren Good idea! Thanks. But would there be a way to find out what user executed the setuid root program, so it would know which user to run the program as? Otherwise I could make a script that is actually used to run the setuid root program, and pass "whoami" to it as a parameter. But I'd rather avoid that extra level of complexity. .