LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   About SElinux: enter "setenforce 0",system complains bad command (https://www.linuxquestions.org/questions/linux-software-2/about-selinux-enter-setenforce-0-system-complains-bad-command-355155/)

aladin 08-20-2005 07:58 AM

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.
Thx!

Aladin:)

rjlee 08-21-2005 03:42 AM

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
Code:

echo $PATH
and add a directory to it with
Code:

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:
Code:

/usr/sbin/setenforce 0
You can find out where setenforce is on your system using
Code:

locate setenforce

reddazz 08-21-2005 03:42 AM

You need to be root when you run that command.

aladin 08-21-2005 08:16 PM

OKay,I've made it!
Thx all!!!


All times are GMT -5. The time now is 04:56 PM.