Tag Info

New answers tagged

0

Use a wrapper around renice, something like: #!/bin/sh priority="$1" pid="$2" owner=`ps -h -o uid $pid` if [ $owner != ${SUDO_UID} ]; then echo "Only your own processes can be reniced" >&2 exit 1 fi renice $priority $pid Note, that the example is fragile and prone to race conditions because of the delay between the ownership check and the ...


0

You want group members to be able to only renice their own processes. This is the default behaviour without a sudoers entry. By default they can renice their own processes` nice value within the range 0 - 19. Having sudo access to renice allows them to increase this range from -20 to 19 as well as renice processes not owned by them. Running man renice, I ...



Top 50 recent answers are included