Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-20-2005, 07:58 AM   #1
LQ Newbie
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
About SElinux: enter "setenforce 0",system complains bad command

Hello everyone
I want to run matlab704 on my FC4 box, and before it I turn off the SElinux by "setenforce 0" , but the system some times complains bad command some times not. I don't know why, please help me.

Old 08-21-2005, 03:42 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 68
The BASH shell will complain that a command cannot be found if the file with the given name does not exist in a directory listed in the $PATH environment variable.

You can see the current search path with
echo $PATH
and add a directory to it with
export PATH=$PATH:/usr/sbin/
I think setenforce lives in /usr/sbin/ which is on the root user's path by default but not on the path of regular users.

Another way around this would be to give the full path:
/usr/sbin/setenforce 0
You can find out where setenforce is on your system using
locate setenforce
Old 08-21-2005, 03:42 AM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You need to be root when you run that command.
Old 08-21-2005, 08:16 PM   #4
LQ Newbie
Registered: Aug 2005
Posts: 13

Original Poster
Rep: Reputation: 0
OKay,I've made it!
Thx all!!!


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
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
Enter your "wanted system" for the best operating system ever.!! terfy Linux - Distributions 1 10-22-2005 08:25 PM
Making system "bad shutdown" ready Red Squirrel Debian 6 07-31-2005 12:13 PM
"perl Makefile.PL" complains about cc & gcc (self solved tip) Raptor Ramjet Slackware 2 09-13-2004 02:24 PM
"Disk boot failure. Enter system disk and press enter" Fear58 Linux - Hardware 3 06-25-2004 05:17 PM

All times are GMT -5. The time now is 11:35 PM.

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