The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Strange one (likely something simple...) alexop Shell Programming and Scripting 6 10-30-2007 07:40 AM
Something strange... B14speedfreak SUN Solaris 0 06-29-2006 10:48 AM
strange error laila63 High Level Programming 1 07-27-2004 02:09 PM
Strange problem.Please Help ! lyhsm UNIX for Dummies Questions & Answers 1 12-01-2000 12:00 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-16-2002
skotapal skotapal is offline
Registered User
  
 

Join Date: Aug 2002
Location: Philadelphia, PA
Posts: 75
Question strange

Hi All
I am doing a locate <file_name> on my Redhat 7 System. I am unable to get the output. All the keep getting is:
locate: this is not a vlaid slocate database: /var/lib/locate/slocate.db

What des this mean? Is my system compromised?

Thanks in advance.

KS
  #2 (permalink)  
Old 10-16-2002
BSeanD's Avatar
BSeanD BSeanD is offline
Registered User
  
 

Join Date: Aug 2002
Location: Melbourne, Australia
Posts: 127
Is the db actually there? If it is what are the permissions, do you need to be root to access it?
  #3 (permalink)  
Old 10-17-2002
TioTony's Avatar
TioTony TioTony is offline Forum Advisor  
Bit Pusher
  
 

Join Date: Oct 2001
Location: Southern California
Posts: 332
I may be wrong about this and am completely going on an old memory, which may or may not be correct. I seem to remember the database used by locate is created when the system is booted, thus rebooting the system MAY fix the issue. It's worth a shot if you don't have any other ideas and can reboot the box without too much trouble.
  #4 (permalink)  
Old 10-17-2002
skotapal skotapal is offline
Registered User
  
 

Join Date: Aug 2002
Location: Philadelphia, PA
Posts: 75
strange

The database is there... I am able to locate as root.
  #5 (permalink)  
Old 10-17-2002
auswipe's Avatar
auswipe auswipe is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Wide Awake Wylie, Texas
Posts: 535
Sounds like a PATH issue. The root PATH envvar has the path to the .DB in it whereas the user that you are looking for it does not.
  #6 (permalink)  
Old 11-13-2002
skotapal skotapal is offline
Registered User
  
 

Join Date: Aug 2002
Location: Philadelphia, PA
Posts: 75
thanks...but how can i set the envvar PATH to the slocate.db file?
Is this right?
PATH = :/var/lib/slocate/slocate.db
export PATH
  #7 (permalink)  
Old 11-13-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
That doesn't make sense, the slocate db is usable by root, but not users? Sounds like a permissions problem to me...

Usually, locate/slocate are updated from cron.
Depending on which locate you're using, it may be at /usr/bin/updatedb, /usr/libexec/update.locatedb, or others...

Being that you're on a Redhat system, try running /usr/bin/updatedb as root to rebuild the file. Then check the permissions.
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0