LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2005, 12:44 PM   #1
Jaykay3k
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Rep: Reputation: 15
fatal error using "locate"


Hi,

this is the error i get messgae when I do locate -l stdc++*:

Fatal error: locate: error: security level must be 0 or 1.

Why do i get this error message?

Thanks for anyhelp in solving this.
 
Old 03-01-2005, 09:54 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
It's apparently something to do with SELinux. The following thread might help you: http://www.linuxquestions.org/questi...hreadid=220960
 
Old 03-01-2005, 10:51 PM   #3
NoStop
Member
 
Registered: Feb 2005
Location: Canada
Distribution: Debian Etch - Enlightenment E17
Posts: 116

Rep: Reputation: 15
man locate

looks to me like the -l switch requires a security level ... 0 or 1 :-)

Cheers
 
Old 03-02-2005, 11:09 AM   #4
Jaykay3k
LQ Newbie
 
Registered: Feb 2005
Posts: 23

Original Poster
Rep: Reputation: 15
I had a look at it and still do not understand how the user fixed it! I am a n00b so need a bit more alleboration.

He mentioned "I" was missing in, I don know what he is talking about?!?

thanks for help and advice in advance.
 
Old 03-02-2005, 03:00 PM   #5
NoStop
Member
 
Registered: Feb 2005
Location: Canada
Distribution: Debian Etch - Enlightenment E17
Posts: 116

Rep: Reputation: 15
OK, maybe some examples will help?

locate -l 0 jpeg .... would work
locate -l 1 jpeg .... would work
locate -l jpeg .... will not work, and you'll get the error message it requires 0 or 1

the man page will tell you there is a default value for -l, so you don't need it if you are satisfied with the default. therefore:

locate jpeg .... will work

Cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"FATAL: Unknown capture source type" error from Kismet atlantanewbie Linux - Wireless Networking 2 04-03-2010 06:34 AM
XIO: fatal IO error 04 (connection reset by peer) on X server ":0.0" Kernel 2.6.5 Slackware 15 10-29-2007 12:53 AM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 03:11 PM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 10:59 AM
startx will not start xwindows... "XIO: fatal IO error 104" khermans Linux - Newbie 22 01-09-2002 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration