Skip site navigation (1)Skip section navigation (2)
Date:      25 Jun 2003 11:16:02 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: locate database
Message-ID:  <44llvqdw7h.fsf@be-well.ilk.org>
In-Reply-To: <20030624183026.M56829@wpi.edu>
References:  <20030624183026.M56829@wpi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
"Ben Polidore" <cash@h50.net> writes:

> My locate database is not being updated.
> 
> If I run the script in /etc/periodic/weekly this is the output:
> 
> [root@boxH50:/etc/periodic/weekly]# ./310.locate
> 
> Rebuilding locate database:
> [root@boxH50:/etc/periodic/weekly]#
> 
> That takes about 1 second.
> 
> This is an ls on the db file.
> 
> [root@boxH50:/etc/periodic/weekly]# ls -l /var/db/locate.database
> -r--r--r--  1 nobody  wheel  5911 Jun 24 14:31 /var/db/locate.database
> [root@boxH50:/etc/periodic/weekly]#
> 
> If I just run locate.updatedb as root, it works, but as soon as the periodic 
> script runs, the database is reduced to the above.
> 
> Any thoughts?

The weekly script runs locate.updatedb as "nobody", and won't get into
any directories that "nobody" can't see.  If you've tightened up your
directory permissions, it seems quite appropriate that the locate
database would be affected...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44llvqdw7h.fsf>