Debian bug report logs - #1239
/etc/cron.daily/find: updatedb doesn't exclude cdrom and others
Package: findutils; Reported by: Lars Wirzenius <wirzeniu@cc.helsinki.fi>; 80 days old.
Message received at debian-bugs:
From cus.cam.ac.uk!iwj10 Sun Aug 13 17:12:02 1995
Return-Path: <iwj10@cus.cam.ac.uk>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0shn8L-0002GcC; Sun, 13 Aug 95 17:12 PDT
Received: from bootes.cus.cam.ac.uk by pixar.com with SMTP id AA10962
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sun, 13 Aug 1995 17:11:55 -0700
Received: by bootes.cus.cam.ac.uk
(Smail-3.1.29.0 #36) id m0shn8I-000BzmC; Mon, 14 Aug 95 01:11 BST
Received: by chiark
id <m0shc5r-0002YPZ@chiark.al.cl.cam.ac.uk>
(Debian /\oo/\ Smail3.1.29.1 #29.33); Sun, 13 Aug 95 13:24 BST
Message-Id: <m0shc5r-0002YPZ@chiark.al.cl.cam.ac.uk>
Date: Sun, 13 Aug 95 13:24 BST
From: Ian Jackson <iwj10@cus.cam.ac.uk>
To: debian-bugs@pixar.com
Subject: Re: Bug#1239: /etc/cron.daily/find: updatedb doesn't exclude cdrom and others
Lars Wirzenius writes:
> /etc/cron.daily/find in findutils-4.1-2.deb doesn't exclude the /cdrom
> directory. I think it should, since the CD-ROM that is mounted the next
> day probably isn't the one that was mounted during the night.
>
> I assume it also doesn't exclude the /floppy, /proc, and /mnt directories,
> but I haven't checked. (What's /disk?)
/disk is going away, I think - it was part of a scheme involving
symlinks for an experimental 2-partition setup.
> Fix: use a command similar to the following instead:
> updatedb --prunepaths="/cdrom /tmp /var/tmp /proc" 2>/dev/null
Can updatedb not be made to be more controllable ?
The `checksecurity' script in the latest cron package uses (to find
all devices and setuid files):
find `mount | grep -vE ' type (proc|iso9660) |^/dev/fd| on /mnt' | cut -d ' ' -f 3` \
-xdev \( -type f -perm +06000 -o -type b -o -type c \) -ls \
| sort >$TMP
This avoids problems where people mount things in unexpected places.
Ian.
Acknowledgement sent to Ian Jackson <iwj10@cus.cam.ac.uk>
:
Extra info received and forwarded.
Full text available.
Information forwarded to debian-devel@pixar.com
:
Bug#1239
; Package findutils
.
Full text available.
Message received at debian-bugs:
From cc.helsinki.fi!wirzeniu Sat Aug 12 07:25:30 1995
Return-Path: <wirzeniu@cc.helsinki.fi>
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0shHVC-0003azC; Sat, 12 Aug 95 07:25 PDT
Received: from myntti.Helsinki.FI by pixar.com with SMTP id AA02385
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sat, 12 Aug 1995 07:25:07 -0700
Received: (wirzeniu@localhost) by myntti.helsinki.fi (8.6.12+Emil1.1/8.6.5) id RAA20280; Sat, 12 Aug 1995 17:25:09 +0300
Date: Sat, 12 Aug 1995 17:25:09 +0300 (EET DST)
From: Lars Wirzenius <wirzeniu@cc.helsinki.fi>
X-Sender: wirzeniu@myntti
To: debian-bugs@pixar.com
Subject: /etc/cron.daily/find: updatedb doesn't exclude cdrom and others
Message-Id: <Pine.SOL.3.91.950812171400.19388A-100000@myntti>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Package: findutils
Version: 4.1-2
/etc/cron.daily/find in findutils-4.1-2.deb doesn't exclude the /cdrom
directory. I think it should, since the CD-ROM that is mounted the next
day probably isn't the one that was mounted during the night.
I assume it also doesn't exclude the /floppy, /proc, and /mnt directories,
but I haven't checked. (What's /disk?)
Fix: use a command similar to the following instead:
updatedb --prunepaths="/cdrom /tmp /var/tmp /proc" 2>/dev/null
(I choose to run this as root, instead of nobody, but that isn't a good
idea for most others.)
Acknowledgement sent to Lars Wirzenius <wirzeniu@cc.helsinki.fi>
:
New bug report received and forwarded.
Full text available.
Report forwarded to debian-devel@pixar.com
:
Bug#1239
; Package findutils
.
Full text available.
Ian Jackson /
iwj10@thor.cam.ac.uk,
with the debian-bugs tracking mechanism