Code:
$> sudo /usr/libexec/locate.updatedb
>>> WARNING
>>> Executing updatedb as root. This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.
^Crmdir: /tmp/locate4A16PnO9VD/mklocateewCgMcaVTT: No such file or directory
rmdir: /tmp/locate4A16PnO9VD: No such file or directory
userx@FreeBeSssDeee.edo:~
$> /usr/libexec/locate.updatedb
/usr/libexec/locate.updatedb: cannot create /var/db/locate.database: Permission denied
that is the question
a security risk to allow it to update,
or not as root to not allow it to update without adding a security risk