[sudo-users] "nice sudo foo": "foo" does not inherits niceness

thomas thomas.bsd at gmail.com
Mon Aug 18 11:19:12 EDT 2008


Hi list, here is my question:

$ (nice sudo sleep 5 &);  ps -al | egrep '(^F|sleep)'
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
4 S     0 15823     1  0  80   0 -   754 -      pts/5    00:00:00 sleep

Why doesn't "sleep" have a niceness of 10?

Of course I do not want to add "nice" to /etc/sudoers and run "sudo
nice foo", that would be quite insecure :-/

$ sudo -V
Sudo version 1.6.9p17

Thanks for your help

Thomas



More information about the sudo-users mailing list