patchfindutils - Patches: patch #4340, Set ${NICE:0} value on "su...


You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  None
Submitted on:  Wed 24 Aug 2005 12:35:31 PM UTC  
Category:  updatedb bugfix Priority:  3 - Low
Status:  Wont Do Privacy:  Public
Assigned to:  James Youngman <jay> Originator Name: 
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Fixed Release:  None

Thu 24 Nov 2005 04:37:31 AM UTC, comment #5: 

 <a href=''> - hentai big tits </a>
 <a href=''> - asian teen pussy </a>
 <a href=''> - bbw escort uk </a>
 <a href=''> - hermaphrodite females </a>
 <a href=''> - asian big tits </a>
 <a href=''> - housewife mature free pics </a>
 <a href=''> - mature woman and underage boy video </a>
 <a href=''> - chinese porn </a>
 <a href=''> - learning the techniques of japanese bondage </a>
 <a href=''> - tiny little tits free galleries </a>
 <a href=''> - naked older women video </a>
 <a href=''> - nterracial picture </a>
 <a href=''> - erotic stories shemale </a>
 <a href=''> - transgendered halloween </a>
 <a href=''> - sexy older women in praise of older women free amateur </a>
 <a href=''> - mature xxx forums </a>
 <a href=''> - blowjobs teen </a>
 <a href=''> - young and mature lesbians having sex </a>
 <a href=''> - from male to hermaphrodite </a>
 <a href=''> - sheboy dick </a>
 <a href=''> - japanese big breast </a>
 <a href=''> - anal destruction interracial </a>
 <a href=''> - loni sanders cum shots </a>
 <a href=''> - gallery of mature women </a>
 <a href=''> - chinese cultural revolution </a>
 <a href=''> - free shemale drawings </a>
 <a href=''> - pics of women </a>
 <a href=''> - engorged breasts </a>
 <a href=''> - fat ebony pussy </a>
 <a href=''> - horney old women </a>
 <a href=''> - free big boobs seach engines </a>

Sat 03 Sep 2005 10:30:59 AM UTC, comment #4: 

In view of Andreas's comment, I plan not to apply a patch to work around the problem.

James Youngman <jay>
Project AdministratorIn charge of this item.
Thu 01 Sep 2005 05:21:44 PM UTC, comment #3: 

> When cron (in debian) starts the find job (present in
> /etc/cron.daily/),

[nice not inherited]

I do not think the correct way to fix this is in find. It caused by always resetting the nice value, which it should not.

This was reported as and the corrsponding report against PAM is
The latter one is lingering, but I hope it will be dealt with, once PAM's maintance catches up.
           cu andreas

Andreas Metzler <ametzler>
Wed 31 Aug 2005 07:30:54 PM UTC, comment #2: 

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.

Mon 29 Aug 2005 10:09:13 AM UTC, comment #1: 

The nice value should be inherited from the parent process, I think, like this:

$ nice ksh -c "sh -c \"sleep 1000\"" &
[1] 7091
$ jobs
[1]+  Running                 nice ksh -c "sh -c \"sleep 1000\"" &
$ ps -o pid,ppid,nice,args  -t
 7026  5125   0 bash
 7091  7026  10 ksh -c sh -c "sleep 1000"
 7092  7091  10 sleep 1000
 7093  7026   0 ps -o pid,ppid,nice,args -t

Could you give me a specific example demonstrating the problem that your change is intended to address?

James Youngman <jay>
Project AdministratorIn charge of this item.
Wed 24 Aug 2005 12:35:31 PM UTC, original submission:  

Without it, nice values in updatedb.conf does not afect cron.daily/find
@nice@ command needs to be set somewhere



Attached Files
file #9271:  updatedb.diff added by None (367B - text/x-diff - added @nice@ command and use it with find)


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-03 jay StatusNone => Wont Do
    Open/ClosedOpen => Closed
2005-08-29 jay Assigned toNone => jay
2005-08-24 None Attached File- => Added updatedb.diff, #5064
    Carbon-Copy- => Added dick --AT-- inf --DOT-- ufsc --DOT-- br

Back to the top

Powered by Savane 3.5