src
src copied to clipboard
locate cron script doesn't believe I'm root.
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- [X] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [X] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Describe the bug Trying to locate a specific file results in the following interaction:
root@fwleb02:~ # locate blacklistd
locate: the locate database '/var/db/locate.database' is smaller than 256 bytes large.
To create a new database, please run the following command as root:
/etc/periodic/weekly/310.locate
root@fwleb02:~ # /etc/periodic/weekly/310.locate
Rebuilding locate database:
Must be root.
root@fwleb02:~ # whoami
root
I hope you can reproduce the issue.