LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Closed Thread
  Search this Thread
Old 12-03-2007, 02:56 PM   #1
Iamriccati
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
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
 
Old 12-03-2007, 07:45 PM   #2
mteohs
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
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.
 
Old 12-04-2007, 04:23 PM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
  


Closed Thread



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
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM
FC5 SELinux question marozsas Fedora 12 10-15-2006 08:30 PM
A newbie question about SELinux natasha Linux - Security 1 08-14-2006 11:27 AM
selinux question stopmotion24 Fedora 2 03-26-2005 10:58 PM
selinux question ronin4601 Linux - Newbie 0 04-18-2004 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:04 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
Open Source Consulting | Domain Registration