Bug 17074

Summary: locate.updatedb fails when /root is 750
Product: Base System Reporter: cjohnson <cjohnson>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   

Description cjohnson 2000-02-29 14:30:01 UTC
If the root's home directory is set such that "nobody" can not read it
then the locate.updatedb script will fail when run from
/etc/periodic/weekly/310.locate

Test:
	su
	cd
	chmod 750 .
	echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody
	find .: permission denied

And the locate database is not updated.  This becomes a problem because
/etc/periodic/weekly/310.locate does run from the /root and does
do the locate as nobody.

Fix: 

Add a "cd /var/tmp" or "cd /tmp" in locate.updatedb
How-To-Repeat: 
see description
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-02-29 15:46:26 UTC
State Changed
From-To: open->closed

Already fixed in 310.locate rev1.3.  Update your installed periodic 
scripts. 
(mergemaster(1) will help with that, by the way)