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:

  <http://savannah.gnu.org/patch/?func=detailitem&item_id=4340>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
Bug-findutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to