Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 1999 10:28:51 -0400
From:      "Francisco Reyes" <fran@reyes.somos.net>
To:        "FreeBSD questions" <questions@freebsd.org>
Subject:   Permission denied when rebuilding locate db
Message-ID:  <199910171426.KAA23720@sanson.reyes.somos.net>

next in thread | raw e-mail | index | archive | help
I have moved creating of the locate database to /etc/periodic/daily.
For a month or so it worked fine but lately the locate db has been zero bytes.
When I look at the daily run output I see:

Rebuilding locate database:
find: .: Permission denied

If I run the script by hand as root it works fine.
/etc/crontab has the daily jobs run as root so I don't understand how it could work if run from the shell 
manually, but not from the daily run.

find: .: Permission denied <== Is that saying that it had the permission denied from the current, ".",  
directory? What would be the "." directory? Neither /usr/sbin/periodic or /etc/periodic/daily/315.locate 
(the name I renamed it to) seem to change the directory.

Any ideas?




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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