[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #4340] Set ${NICE:0} value on "su command" clean environments

From: anonymous
Subject: [patch #4340] Set ${NICE:0} value on "su command" clean environments
Date: Wed, 31 Aug 2005 19:30:55 +0000
User-agent: Opera/8.02 (X11; Linux i586; U; pt-BR)

Follow-up Comment #2, patch #4340 (project findutils):

When cron (in debian) starts the find job (present in /etc/cron.daily/), this
job calls updatedb. Then updatedb calls find in a command via su.

  su $LOCALUSER `select_shell $LOCALUSER` -c \                               
     "$find $SEARCHPATHS $FINDOPTIONS etc etc etc

The resulting find only runs with the setted up nice value when this value is
passed in $find explicity. Even when i set cron process to run with a lower
nice value it does not inherit it.
An example:

nice -n 25 su testes mc

As root, It runs mc as user testes, but nice value is kept in 0.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]