[sudo-users] "nice sudo foo": "foo" does not inherits niceness
Russell Van Tassell
russell+sudo-users at loosenut.com
Mon Aug 18 12:10:39 EDT 2008
(eek, sorry for the previous munged post)
On Mon, Aug 18, 2008 at 08:57:00AM -0700, Russell Van Tassell wrote:
> On Mon, Aug 18, 2008 at 05:19:12PM +0200, thomas wrote:
> > $ (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?
> >
> > [...]
> >
> > $ sudo -V
> > Sudo version 1.6.9p17
>
> [What's the behavior of "nice" outside of sudo?]
To be clear, you might want to give "nice" an actual number... something
like "nice +10" or "nice -n +10" depending on implementation (and note
that many shells will override the system binary if you don't specify an
absolute path).
--
Russell M. Van Tassell
russell at loosenut.com
The cow is nothing but a machine which makes grass fit for us people to
eat. -- John McNulty
More information about the sudo-users
mailing list