Solved

Hard Coding a Port for NIS on Fedora Core2

Posted on 2004-09-21
6
284 Views
Last Modified: 2013-12-15
I want to run NIS between a mail server in my DMZ to a server on my trusted network which runs Fedora Core2.  My firewall requires a pin hold with a static port, but when I reboot my server the NIS turns up on another port.  Is there a way to hard set the NIS communication port on a Server running Fedora Core 2?
0
Comment
Question by:qcomm
  • 2
6 Comments
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 250 total points
ID: 12117223
0
 
LVL 2

Expert Comment

by:fulp02
ID: 12144689
Yes make a startup script an place it in your runlevel that you are using
delete the old NIS script or it may be something with ypserv in it
Anyways make the new script and use the
ypserv -p 500

now the nis server will run on that port

Heres a link if you need help http://www.linuxforum.com/man/ypserv.5.php
0
 

Author Comment

by:qcomm
ID: 12145168
this is a comment to the original question to make it more concise!

I am familiar with NIS and know the howto forward and backward, I will try rewriting the startup script and see if the startup script is the problem.  However, all attempts at this point to set the port have failed.  NIS will not start under two conditions at this point -- 1. if I enter the -p entry in the startup script, and 2. if I run the machine at init level 3.  I really would prefer to run the box at init level 3 rather than init level 5.

0
 
LVL 2

Assisted Solution

by:fulp02
fulp02 earned 250 total points
ID: 12153463
Aight 1 Make sure the RPC portmapper Is running with out it
I am pretty sure Nis Will crash every time , And in your startup after you verify
that the port mapper is runnin Put it at the very end to start so
say the your script was in roots home dir named "NisStart"
in that script there would be the command "ypserv -p 500"
Now copy this to Your run leve and Make it execute last

So I believe that you would do this
cp NisStart /etc/rc.d/rc3/S99NisStart give that a try and let me know how it works out
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now