Locate command not working

HI when ever i type the locate command it is saying like below

 
warning: locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old

i am using Linux .
version is as follows...

$ uname -a

Linux abc.abc.com 2.6.9-89.35.1.ELhugemem #1 SMP Tue Jan 4 22:43:29 EST 2011 i686 athlon i386 GNU/Linux

why i ma getting this error? is ther anyway i can do some install/work around so that locate command works.

Run updatedb...

$ updatedb
1 Like

Hi I tried this commnad and it gave me an error syaing below .what can be done ?do i need to involve administers to run this command.

 
$ updatedb
fatal error: updatedb: You are not authorized to create a default slocate database!

Yes. Only root can do that.

1 Like