LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing SELinux settings for PCLinuxOS (https://www.linuxquestions.org/questions/linux-newbie-8/changing-selinux-settings-for-pclinuxos-777837/)

anaigini45 12-24-2009 03:05 AM

Changing SELinux settings for PCLinuxOS
 
I want to change the SELinux settings to permissive mode (temporarily) in my PCLinuxOS distro. But I can't find the configuration file to do so there. It is very different from Centos and Fedora settings.

Please help.

Fadoksi 12-24-2009 03:14 AM

Hi!

Try this link:
http://www.crypt.gen.nz/selinux/disable_selinux.html

Merry Christmas! :)

anaigini45 12-24-2009 03:25 AM

I've already tried the commands there, but it does not work....
It returns lots of error like

Code:

bash : newrole: command not found
Code:

bash : setenforce: command not found
The grub.conf file does not even exist in /boot/grub

knudfl 12-24-2009 10:33 AM

Why do you think, you have selinux in PCLinuxOS ? ?

There isn't any by default.
No packages available, AFAIK.
So unless you did build it, new kernel module etc. :
No selinux'.

.....

By the way, the file 'grub.conf' has two names :
A link 'menu.list' is common, or the file name is
menu.list
.....

anaigini45 12-27-2009 08:17 PM

Actuallly, I'm in the process of installing and making nagios work in my PCLinux.One of the steps is to set SELinux to permissive mode. Since SElinux doesn't exist in PCLinux, what other settings do I have to change?

Because when I skip that step, I can't launch nagios through http://localhost/nagios.
The error message that I get is Error 404 : Object not found.

But apache works with http://localhost.

nimnull22 12-27-2009 08:43 PM

Do you have /etc/selinux?
There should be a config file, and inside SELINUX=permissive

I am actually as well start to play with it.

nimnull22 12-27-2009 08:57 PM

Or in grab boot selinux=1 enforcing=0, if you have it.

anaigini45 12-27-2009 08:59 PM

No I don't have any of those. I don't have /etc/selinux nor the lines selinux and enforcing. These are the contents of the menu.lst file in /boot/grub.

Quote:

timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title linux
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=f7a48909-825c-420a-83a1-$
initrd (hd0,0)/boot/initrd.img

title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=f7a48909-825c-420a$
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=f7a48909-825c-420a-83$
initrd (hd0,0)/boot/initrd.img

nimnull22 12-28-2009 10:26 AM

Do you have manual:
man selinux ?

In mine says about config file, check yours.

knudfl 12-29-2009 02:31 AM

*

I can repeat : There is no selinux in / for PCLinuxOS


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