LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-14-2007, 03:26 AM   #1
ahmedb72
Member
 
Registered: Jan 2006
Location: Sydney
Distribution: RHEL
Posts: 72

Rep: Reputation: 15
Setting up NIS Master Server


Hi all,

I am following the steps to set up a NIS Master server.
The /var/yp/eMakefile file requires many source files to process. Unluckily I noticed the following files do not exist in my machine:
ethers
netgroup
bootparams

I have Solaris 10 on x86 machine installed with Entire Installation option.

(1) Why those files are not there in my machine?
(2) I would appreciate is if any one guides me to a link with more details about configuring NIS server.


Code:
bash-3.00# /usr/sbin/ypinit -m

In order for NIS to operate sucessfully, we have to construct a list of the
NIS servers.  Please continue to add the names for YP servers in order of
preference, one per line.  When you are done with the list, type a <control D>
or a return on a line by itself.
        next host to add:  sun3
        next host to add:

The current list of yp servers looks like this:

sun3

Is this correct?  [y/n: y]  y

Installing the YP database will require that you answer a few questions.
Questions will all be asked at the beginning of the procedure.

Do you want this procedure to quit on non-fatal errors? [y/n: n]  n
OK, please remember to go back and redo manually whatever fails.  If you
don't, some part of the system (perhaps the yp itself) won't work.
The yp domain directory is /var/yp/bar
Can we destroy the existing /var/yp/bar and its contents? [y/n: n]  y
There will be no further questions. The remainder of the procedure should take
5 to 10 minutes.
Building /var/yp/bar/ypservers...
Running /var/yp /Makefile...
updated passwd
updated group
updated hosts
updated ipnodes
make: Warning: Don't know how to make target `/root/nissource/ethers'Current working directory /var/yp
updated networks
updated rpc
updated services
updated protocols
make: Warning: Don't know how to make target `/root/nissource/netgroup'
Current working directory /var/yp
make: Warning: Don't know how to make target `/root/nissource/bootparams'
Current working directory /var/yp
/var/yp/bar/mail.aliases: 12 aliases, longest 10 bytes, 138 bytes total
/usr/lib/netsvc/yp/mkalias /var/yp/`domainname`/mail.aliases /var/yp/`domainname`/mail.byaddr;
updated aliases
make: Warning: Don't know how to make target `/root/nissource/publickey'
Current working directory /var/yp
updated netid
/usr/sbin/makedbm /root/nissource/netmasks /var/yp/`domainname`/netmasks.byaddr;
updated netmasks
couldn't find /root/nissource/timezone
updated auto.master
updated auto.home
updated ageing
updated auth_attr
updated exec_attr
updated prof_attr
updated user_attr
updated audit_user
make: Warning: Target `all' not remade because of errors
Current working directory /var/yp
*** Error code 1
The following command caused the error:
if [ ! 1 ]; then make   -k all; \
else make  -k all NOPUSH=1;fi
make: Fatal error: Command failed for target `k'
Error running Makefile.

sun3 has been set up as a yp master server with errors.  Please remember
to figure out what went wrong, and fix it.

If there are running slave yp servers, run yppush now for any data bases
which have been changed.  If there are no running slaves, run ypinit on
those hosts which are to be slave servers.
 
Old 10-14-2007, 08:24 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by ahmedb72 View Post
Hi all,

I am following the steps to set up a NIS Master server.
The /var/yp/eMakefile file requires many source files to process. Unluckily I noticed the following files do not exist in my machine:
ethers
netgroup
bootparams

I have Solaris 10 on x86 machine installed with Entire Installation option.

(1) Why those files are not there in my machine?
Because you didn't create them. For details about what you may want to set in them:

Code:
man -s 4 ethers netgroup bootparams
 
  


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 Client can not login to NIS Master Server Free_beer Ubuntu 3 10-09-2006 02:57 PM
Setting Up An NIS Slave Server kaplan71 Fedora 0 07-14-2005 03:58 PM
??NIS Master??? lemay_jeff Linux - Networking 0 04-28-2004 03:05 PM
NIS Solaris 8 (MASTER) ---> RH9 NIS (Slave) Help x86br Linux - Networking 4 05-12-2003 05:26 PM
assign new master NIS? hasrin Linux - Software 0 04-19-2003 08:15 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:25 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