PDA

View Full Version : [ubuntu] Locate doesn't locate everything...



vv1984
June 15th, 2011, 04:10 PM
Hi,
i've got little troubles with locate command.

I'm trying (as root) to locate some "sensible" files like
httpd.conf or mysql.sock among my filesystem.
But it doesnt return a thing.

Is there any problem with locate in ubuntu 10.10?
Or maybe the problem is su?

After logging as root i get errors when i try to edit some apache config files. The problem slips away if i use sudo. Quite weird, isn't it?

ajgreeny
June 15th, 2011, 05:30 PM
Have you updated the files database with
sudo updatedbas a terminal command?

You have obviously activated the root user for some reason, and I suppose that may make a difference, but I am not sure why it should.