rwilkerson
Registered
This is driving me crazy. I'm a regular user of locate on my unix boxes, but in OS X it behaves differently in a number of ways. I've created an alias (I use tcsh, in case it matters later) "updatedb" for "sudo /usr/libexec/locate.updatedb" and not that works similarly. I've also installed a root cronjob to update the db regularly. One problem down.
What I'm left with now, though, is the locate syntax itself. If, as my regular user, I run "locate foo" I get an error returned and the usage displayed. If, however, I run "sudo locate foo", I get the results I'm expecting. Shouldn't I be able to run locate as any user? If so, what am I doing wrong?
My locate.database file is owned by nobody:wheel and perms are 644 (rw, r, r).
Any thoughts?
I appreciate it.
What I'm left with now, though, is the locate syntax itself. If, as my regular user, I run "locate foo" I get an error returned and the usage displayed. If, however, I run "sudo locate foo", I get the results I'm expecting. Shouldn't I be able to run locate as any user? If so, what am I doing wrong?
My locate.database file is owned by nobody:wheel and perms are 644 (rw, r, r).
Any thoughts?
I appreciate it.