LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-13-2003, 12:02 PM   #1
Hec_2305
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Nis Server


Hello All
I have a final project in my linux class and was wondering if anyone could help me get started. The project is to set up a NIS server. I need to have a client login, the good thing is that I don't have to set up dns I can use the host file to set up the client. It sounds easy enough but being a newbie to linux I'm not sure where to start. Any help would be cool
 
Old 11-13-2003, 12:54 PM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Just a note I've done this mostly on Redhat so it may vary slightly by distro...
Some of the basic things that need to be configured:
/etc/sysconfig/network (may vary by distro) should have a line like so:
NISDOMAIN=<NIS_DOMAINNAME>

/etc/yp.conf should have a line like this:
domain <NIS_DOMAINNAME> broadcast

'domainname' should echo what your NIS_DOMAINNAME is set to.

/usr/lib/yp/ypinit -m #initiallizes NIS

after that you can check to see if it's running with these commands:
service ypserv status
service ypbind status
ypwhich

There are other options that you may want to change, configure, modify, etc. examples: /etc/ypserv.conf, /etc/nsswitch.conf, there are probably others

On the nodes it's similar,
check your domainname is correct
check /etc/sysconfig/network
modify /etc/yp.conf should contain a line like this:
domain <NIS_DOMAINNAME> server <server_IP>

after all those things are done do 'service ypbind restart'

That should at least get a basic NIS server/client up and going...
 
Old 11-13-2003, 02:12 PM   #3
Hec_2305
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Okay thanx Blink
One Prob.I went in to the files you specified and I set them modified them to reflect what you said. but tried the last /usr/lib/yp/ypinit -m and get back
No such file or directory. Do I have to install anything?????????
 
Old 11-13-2003, 05:44 PM   #4
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Quote:
Originally posted by Hec_2305
Okay thanx Blink
One Prob.I went in to the files you specified and I set them modified them to reflect what you said. but tried the last /usr/lib/yp/ypinit -m and get back
No such file or directory. Do I have to install anything?????????
Try
locate ypinit
Maybe it's in a different location...
I can't remember installing anything specific but it's been a little while...
 
Old 11-16-2003, 03:54 PM   #5
tefal
Member
 
Registered: Jul 2003
Location: S. Wales
Distribution: Fedora Core 5, SuSE 9.1 Pro
Posts: 30

Rep: Reputation: 15
For RedHat systems , and probably others, go to the folder '/var/yp' and type in the command 'make'.

This will configure your files to be pushed out to the clients.

Then restart ypserv with 'service ypserv restart'

-Tefal
 
Old 11-24-2003, 10:26 AM   #6
Hec_2305
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your help guys. I finally had time to try what you suggested. I'm having trouble with setting up the client. Here is the thing my prof wants to me to set up the client and server using a the hostfile. I tried a number of things but can't have the client join the NIS domain. The two machines can ping each other, but I have no clue as to how to get the client on the same domain as the server. Any ideas?????????
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working fishsponge Linux - Networking 0 11-29-2005 08:43 AM
how to join NIS server (SUN machine) to Linux NIS server? KoRiR Linux - Networking 3 04-28-2004 02:19 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Security 2 03-31-2004 01:43 PM
How to setup a solaris NIS client while with a Linux NIS server? ntcm Linux - Networking 1 03-31-2004 08:51 AM
How to setup a Solaris NIS client while with a Linux NIS server? ntcm Solaris / OpenSolaris 1 03-31-2004 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration