Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
updatedb locate proper usage
« previous
next »
Print
Pages: [
1
]
Author
Topic: updatedb locate proper usage (Read 2247 times)
lshantz
Full Member
Posts: 109
Karma: 3
updatedb locate proper usage
«
on:
August 21, 2020, 08:58:57 pm »
I LOVE the locate utility, but I'm not sure how to do a database update in Opnsense. If I run updatedb as root, it kicks me out saying it is unsafe. If I try to use just a system username it says permissions denied. What is the proper way to rung updatedb to update the database?
Logged
dinguz
Sr. Member
Posts: 275
Karma: 13
Re: updatedb locate proper usage
«
Reply #1 on:
August 22, 2020, 12:36:45 pm »
You can run this as root:
/usr/libexec/locate.updatedb
It will print a warning, but run anyway.
>>> WARNING
>>> Executing updatedb as root. This WILL reveal all filenames
>>> on your machine to all login users, which is a security risk.
Logged
In theory there is no difference between theory and practice. In practice there is.
Fasio
Newbie
Posts: 3
Karma: 0
Re: updatedb locate proper usage
«
Reply #2 on:
August 22, 2020, 04:18:07 pm »
Updates depend on the current user rights, try creating them with full administrator rights and making changes through them.
Logged
lshantz
Full Member
Posts: 109
Karma: 3
Re: updatedb locate proper usage
«
Reply #3 on:
August 22, 2020, 04:52:53 pm »
DOH! It went so fast, I thought it didn't run. I'm used to a typical linux system to run for a few minutes. I also found that find / -name <filename> would print results in nanoseconds and a older mechanical hard drive could take many minutes. I guess the fact that the OS is small and the ssd is extremely fast changes things in a big way.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
updatedb locate proper usage