LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-08-2003, 07:52 AM   #1
sx10
Member
 
Registered: Jan 2002
Posts: 34

Rep: Reputation: 15
NIS setup, need guidance!


Anybody know what the steps are to set up NIS in the simplest form - ie NIS Server and NIS Client?
-Is all SW available form kernel.org?
-Is it source or executable format
-Any gotchas meaning experience only tells you.
Enviro is RHL 9 for server and Client
Thx
 
Old 10-08-2003, 10:06 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Re: NIS setup, need guidance!

Quote:
Originally posted by sx10
Anybody know what the steps are to set up NIS in the simplest form - ie NIS Server and NIS Client?
-Is all SW available form kernel.org?
-Is it source or executable format
-Any gotchas meaning experience only tells you.
Enviro is RHL 9 for server and Client
Thx
From what I remember about setting up NIS...
important files on master:
/etc/yp.conf
This ought to have a line in it that has something like domain your_domain_name broadcast

/etc/sysconfig/network
this ought to have something like:
NETWORKING=yes
HOSTNAME=hostname
NISDOMAIN=your_domain_name

Issue the command domainname make sure this is correct.
You can set it with the command domainname you_domain_name

Then I believe you run something like
/usr/lib/yp/ypinit -m
you can check to see if it is running with these commands:
service ypserv status
service ypbind status
ypwhich

You will also need to start a few other services...
service yppasswdd start
service ypxfrd start

On The clients
set/check your domain with the domainname command
Check the /etc/sysconfig/network
Critical things in /etc/sysconfig/network file:
NETWORKING=yes
HOSTNAME=hostname
NISDOMAIN=your_domain_name

check/set the /etc/yp.conf file
it should contain a line like the following --> domain your_domain_name server IP_of_master

run the following command
service ypbind restart

if it's successfull then these commands should work:
ypwhich
ypcat hosts
ypcat passwd

There are probably other things I'm forgetting but that's what I had in my notes...
 
Old 10-12-2003, 03:59 AM   #3
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
Also worth noting that NIS is not great from a security perspective (in fact I would go as far as to say never run NIS if security is an issue for you). You might like to take a look at setting up LDAP which can achieve the same as NIS but more securely.

Iain.
 
Old 10-14-2003, 11:22 PM   #4
sx10
Member
 
Registered: Jan 2002
Posts: 34

Original Poster
Rep: Reputation: 15
Server up, client up, domain not bound

I may have a firewall issue but trying to do Setup on YPserver box and Firewall->none has no effect. I remember faintly I have had problems removing the RHL9 firewall from High to Medium or None before. Could this be the case for no domain binding?
On the Server machine I did define YPbind stuff and start the service and it seems to be okay, YPWhich tells the name of the NIS server, but when the client is another box on same network that you can ping via DNS name and IP address the YPbind is just waiting ........... and finally start of client [Failed]....
 
  


Reply



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
NIS Setup Help Tinochelli Linux - Software 1 11-11-2004 06:57 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Security 2 03-31-2004 12:43 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Networking 1 03-31-2004 07:51 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Solaris / OpenSolaris 1 03-31-2004 06:10 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Linux - General 1 03-31-2004 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:44 PM.

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