bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Status of updatedb


From: Dmitry V. Levin
Subject: Re: Status of updatedb
Date: Sun, 18 Dec 2005 01:36:52 +0300

On Sat, Dec 17, 2005 at 10:26:38PM +0000, James Youngman wrote:
> On Sat, Dec 17, 2005 at 10:49:08AM +0100, Andreas Metzler wrote:
> > On 2005-11-30 James Youngman wrote:
[...]
> > and that in find | sort | datahandling | writeupdatedb only
> > writeupdatedb should run as superuser.
> 
> Good point.
> 
> I notice that a lot of Linux distributions use slocate, which updates
> the database with a binary rather than a script.

Actually only find needs CAP_DAC_READ_SEARCH privileges, 
writeupdatedb requires writable file descriptor

You can have a look at my own slocate I wrote several years ago
(based on glibc's fts and GNU locate's frencode) which demonstrates
this approach:
ftp://ftp.altlinux.org/pub/people/ldv/slocate/slocate-0.2.8.tar.bz2


-- 
ldv

Attachment: pgpQCcGL5tuF8.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]