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
pgp7n8BSgItck.pgp
Description: PGP signature
_______________________________________________ Bug-findutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-findutils
