/etc/cron.daily/find should be deleted when upgrading or it should use ionice -n instead of -p

Bug #299838 reported by Ari Mujunen
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
findutils
New
Unknown
findutils (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Dapper by wesley fitzgerald

Bug Description

Binary package hint: findutils

In a fresh install of Intrepid there is no '/etc/cron.daily/find' file. However, when upgrading from Hardy to Intrepid, a previously existing '/etc/cron.daily/find' is retained (and even included in /var/lib/dpkg/info/findutils.list which I find strange).

The problem with the retained '/etc/cron.daily/find' file is that it uses the 'ionice' command with a wrong argument '-p', supplying a scheduling-class specific priority value as an argument of '-p' which takes actually a PID value. The correct option would be '-n', and this is correct in the Intrepid '/etc/cron.daily/locate' coming from the locate package.

The use of '-p' makes '/etc/cron.daily/find' fail with 'exit 1' randomly, depending on if there is a process with a PID equal to a priority value running in the system.

If you purge 'findutils' from an upgraded Intrepid system and then reinstall it, the '/etc/cron.daily/find' file disappears and all is well. However, this should probably happen automatically when findutils is upgraded.

Description: Ubuntu 8.10
Release: 8.10
Linux version 2.6.27-7-generic (buildd@palmer) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) ) #1 SMP Tue Nov 4 19:33:20 UTC 2008
findutils: 4.4.0-2ubuntu3
locate: 4.4.0-2ubuntu3
both come from source package findutils

Revision history for this message
wesley fitzgerald (wood45log) wrote :

thank,s if you could give me a hand with this problem i have ahackker as well and even a root kit on board i tried ti seebuzilla but to no avail so if you could help i would be very apreciated

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in findutils (Ubuntu):
status: New → Confirmed
Revision history for this message
François Marier (fmarier) wrote :

I believe that the right fix here is to simply delete /etc/cron.daily/find since it's not present in a fresh Precise install.

Of course, the package should ideally be fixed so that it deletes this old file when it sees it...

Changed in findutils:
status: Unknown → New
Revision history for this message
Marius Gedminas (mgedmin) wrote :

Wheee this bug manifested on my server after I upgraded Ubuntu 10.04 to 12.04 to 14.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.