From owner-freebsd-bugs Sun Feb 10 5:50: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CA87E37B416 for ; Sun, 10 Feb 2002 05:50:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1ADo4e05961; Sun, 10 Feb 2002 05:50:04 -0800 (PST) (envelope-from gnats) Date: Sun, 10 Feb 2002 05:50:04 -0800 (PST) Message-Id: <200202101350.g1ADo4e05961@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "f.johan.beisser" Subject: Re: conf/34780: locate(1)'s database is generated with root permissions Reply-To: "f.johan.beisser" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/34780; it has been noted by GNATS. From: "f.johan.beisser" To: Mike Makonnen Cc: freebsd-gnats-submit@freebsd.org Subject: Re: conf/34780: locate(1)'s database is generated with root permissions Date: Sun, 10 Feb 2002 05:46:13 -0800 (PST) On Sun, 10 Feb 2002, Mike Makonnen wrote: > Yes, it is called by root, but the script su's to user nobody before > updating the database. of course, now that i've gone though this again (3rd times a charm), i see the line i wish i'd seen before: cd / echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3 chmod 444 $locdb || rc=3;; whoops. my brain is failing me today. -------/ f. johan beisser /--------------------------------------+ http://caustic.org/~jan jan@caustic.org "John Ashcroft is really just the reanimated corpse of J. Edgar Hoover." -- Tim Triche To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message