On 2005-07-04 David Jarvie <[EMAIL PROTECTED]> wrote:
> Package: findutils
> Version: 4.2.22-1

> My /etc/updatedb.conf contains (among other things):

>     LOCALUSER="root"
>     export LOCALUSER
>     NICE=19
>     export NICE

> and when updatedb is run by cron from /etc/cron.daily/find, it runs at the 
> expected nice priority of 19. However, when updatedb runs 'find', find's nice 
> level is 0, not 19.
[...]

Hello,
The cause of this is this that since very recently invoking su uses the
PAM module pam_limits.so which in turn resets the nice-level to 0.

http://bugs.debian.org/311058
http://bugs.debian.org/241663

As a workaround you can disable the entry for pam_limits.so in
/etc/pam.d/su. (Gaining that the nice-level is kept, but losing
safeguardlimits imposed on processes run with su.)
               cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
                                           http://downhill.aus.cc/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to