LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   SELINUX Question (https://www.linuxquestions.org/questions/linux-server-73/selinux-question-604211/)

Iamriccati 12-03-2007 02:56 PM

SELINUX Question
 
I am using RHEL 5.0, and I am trying to connect to a NIS server and a CUPS server. Everytime I try to connect SElinux blocks the connection. I have turn the firewall off, and disabled SElinux, but I get the same thing. I do have network access, and I can print over the network to a Jet direct printer. Any Ideas?
Thanks

mteohs 12-03-2007 07:45 PM

I had the same problem using RHEL5.

On the server, I turned off the selinux or set it to pemissive mode. You have to reboot if you turn off the selinux.

On the server & client, edit the /etc/sysconfig/network to include the following:

YPSERV_ARGS=" -p 890"
YPXFRD_ARGS=" -p 892"
YPPASSWDD_ARGS=" -p 891"

You can choose whatever ports but make sure they are not used(check /etc/services for unused ports).

On the server, I added the following line in /etc/sysconfig/iptables

-A RH-Firewall-1-INPUT -i eth0 -j ACCEPT

It is risky in a production environment but for testing it is okay.

jtshaw 12-04-2007 04:23 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Please continue this here.


All times are GMT -5. The time now is 06:25 AM.