[Fwd: nis master server install. on redhat 5.1]

[Fwd: nis master server install. on redhat 5.1]

Post by Murat BICE » Wed, 11 Nov 1998 04:00:00



[ Attached Message ]

From: Murat BICER <mu...@computer.org>
To: "linux-ad...@vger.rutgers.edu" <linux-ad...@vger.rutgers.edu>
Date: Tue, 10 Nov 1998 10:48:59 -0500
Local: Tues, Nov 10 1998 10:48 am
Subject: nis master server install. on redhat 5.1

I have the following problem while installing the nis master server.

I changed /var/yp/Makefile as shown in the attachment.

I did not change /var/yp/securenets and /etc/ypserv.conf for now.

Any Ideas?

# rpcinfo -u localhost ypserv
program 100004 version 1 ready and waiting
program 100004 version 2 ready and waiting

# uname -a
Linux bigblue.ece.miami.edu 2.0.35 #1 Fri Nov 6 01:35:02 EST 1998 i586
unknown

# /usr/lib/yp/ypinit -m

At this point, we have to construct a list of the hosts which will run
NIS
servers.  bigblue.ece.miami.edu is in the list of NIS server hosts.
Please
 continue to add
the names for the other hosts, one per line.  When you are done with the

list, type a <control D>.
        next host to add:  bigblue.ece.miami.edu
        next host to add: <ctrl-d>
The current list of NIS servers looks like this:

bigblue.ece.miami.edu

Is this correct?  [y/n: y]  y
We need some  minutes to build the databases...
Building /var/yp/murat/ypservers...
Running /var/yp/Makefile...
gmake[1]: Entering directory `/var/yp/murat'
gmake[1]: *** No rule to make target `Makefile', needed by
`/var/yp/ypserve
rs'.  Stop.
gmake[1]: Leaving directory `/var/yp/murat'
make: *** [target] Error 2
Error running Makefile.

[ Makefile 10K ]
#
# Makefile for the NIS databases
#
# $Id: ypMakefile.in,v 1.16 1998/02/04 19:45:12 kukuk Exp $
#
# This Makefile should only be run on the NIS master server of a domain.
# All updated maps will be pushed to all NIS slave servers listed in the
# /var/yp/ypservers file. Please make sure that the hostnames of all
# NIS servers in your domain are listed in /var/yp/ypservers.
#
# This Makefile can be modified to support more NIS maps if desired.
#

# Set the following variable to "-b" to have NIS servers use the domain
# name resolver for hosts not in the current domain. This is only needed,
# if you have SunOS slave YP server, which gets here maps from this
# server. The NYS YP server will ignore the YP_INTERDOMAIN key.
#B=-b
B=

# If we have only one server, we don't have to push the maps to the
# slave servers (NOPUSH=true). If you have slave servers, change this
# to "NOPUSH=false" and put all hostnames of your slave servers in the file
# /var/yp/ypservers.
NOPUSH=true

# We do not put password entries with lower UIDs (the root and system
# entries) in the NIS password database, for security. MINUID is the
# lowest uid that will be included in the password maps.
# MINGID is the lowest gid that will be included in the group maps.
MINUID=500
MINGID=500

# These are commands which this Makefile needs to properly rebuild the
# NIS databases. Don't change these unless you have a good reason.
AWK = /bin/awk
MAKE = /usr/bin/gmake
UMASK = umask 066

#
# These are the source directories for the NIS files; normally
# that is /etc but you may want to move the source for the password
# and group files to (for example) /var/yp/ypfiles. The directory
# for passwd and group is defined by YPPWDDIR, the rest is taken
# from YPSRCDIR.
#
YPSRCDIR = /etc
YPPWDDIR = /var/yp/src
YPBINDIR = /usr/lib/yp
YPSBINDIR = /usr/sbin
YPDIR = /var/yp
YPMAPDIR = $(YPDIR)/$(DOMAIN)

DBLOAD = /usr/lib/yp/makedbm -c -m `hostname`
MKNETID = $(YPBINDIR)/mknetid
YPPUSH = $(YPSBINDIR)/yppush
DOMAIN = `basename \`pwd\``
LOCALDOMAIN = murat
REVNETGROUP = $(YPBINDIR)/revnetgroup

# These are the files from which the NIS databases are built. You may edit
# these to taste in the event that you wish to keep your NIS source files
# seperate from your NIS server's actual configuration files.
#
GROUP       = $(YPPWDDIR)/group
PASSWD      = $(YPPWDDIR)/passwd
SHADOW      = $(YPPWDDIR)/shadow
ALIASES     = $(YPSRCDIR)/aliases
ETHERS      = $(YPSRCDIR)/ethers     # ethernet addresses (for rarpd)
BOOTPARAMS  = $(YPSRCDIR)/bootparams # for booting Sun boxes (bootparamd)
HOSTS       = $(YPSRCDIR)/hosts
NETWORKS    = $(YPSRCDIR)/networks
PROTOCOLS   = $(YPSRCDIR)/protocols
PUBLICKEYS  = $(YPSRCDIR)/publickey
RPC         = $(YPSRCDIR)/rpc
SERVICES    = $(YPSRCDIR)/services
NETGROUP    = $(YPSRCDIR)/netgroup
NETID       = $(YPSRCDIR)/netid
AMD_HOME    = $(YPSRCDIR)/amd.home
AUTO_MASTER = $(YPSRCDIR)/auto.master
AUTO_HOME   = $(YPSRCDIR)/auto.home

YPSERVERS = $(YPDIR)/ypservers  # List of all NIS servers for a domain

target: Makefile
        @test ! -d $(LOCALDOMAIN) && mkdir $(LOCALDOMAIN) ; \
        cd $(LOCALDOMAIN)  ; \
        $(NOPUSH) || $(MAKE) -f ../Makefile ypservers; \
        $(MAKE) -f ../Makefile all

# If you don't want some of these maps built, feel free to comment
# them out from this list.

all:  ypservers passwd group hosts rpc services netid protocols mail \
        # shadow publickey # netgrp networks ethers bootparams \
        # amd.home auto.master auto.home

########################################################################
#                                                                      #
#  DON'T EDIT ANYTHING BELOW IF YOU DON'T KNOW WHAT YOU ARE DOING !!!  #
#                                                                      #
########################################################################

ethers:    ethers.byname ethers.byaddr
hosts:     hosts.byname hosts.byaddr
networks:  networks.byaddr networks.byname
protocols: protocols.bynumber protocols.byname
rpc:       rpc.byname rpc.bynumber
services:  services.byname
passwd:    passwd.byname passwd.byuid
group:     group.byname group.bygid
shadow:    shadow.byname
netid:     netid.byname
netgrp:    netgroup netgroup.byhost netgroup.byuser
publickey: publickey.byname
mail:      mail.aliases

ypservers: $(YPSERVERS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 != "" && $$1 !~ "#") print $$0"\t"$$0 }' $^ \
                | $(DBLOAD) -i $(YPSERVERS) -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

bootparams: $(BOOTPARAMS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 != "" && $$1 !~ "#" && $$1 != "+") \
                print $$0 }' $^ | $(DBLOAD) -r -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

$(YPSERVERS): Makefile
        @echo -n "Generating $@... "
        @uname -n > $(YPSERVERS)

ethers.byname: $(ETHERS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 != "" && $$1 !~ "#" && $$1 != "+") \
                print $$2"\t"$$0 }' $^ | $(DBLOAD) -r -i $^ \
                                                -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

ethers.byaddr: $(ETHERS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 != "" && $$1 !~ "#" && $$1 != "+") \
                print $$1"\t"$$0 }' $^ | $(DBLOAD) -r -i $^ \
                                                -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

netgroup: $(NETGROUP) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 != "" && $$1 !~ "#" && $$1 != "+") \
                print $$0 }' $^ | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

netgroup.byhost: $(NETGROUP) Makefile
        @echo "Updating $@..."
        @$(REVNETGROUP) -h < $^ | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

netgroup.byuser: $(NETGROUP) Makefile
        @echo "Updating $@..."
        @$(REVNETGROUP) -u < $^ | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

hosts.byname: $(HOSTS) Makefile
        @echo "Updating $@..."
        @$(AWK) '/^[0-9]/ { for (n=2; n<=NF && $$n !~ "#"; n++) \
                print $$n"\t"$$0 }' $^ | $(DBLOAD) -r $(B) -l -i $^  \
                                -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

hosts.byaddr: $(HOSTS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 !~ "#" && $$1 != "") print $$1"\t"$$0 }' $^ \
                | $(DBLOAD) -r $(B) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

networks.byname: $(NETWORKS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if($$1 !~ "#" && $$1 != "") { print $$1"\t"$$0; \
                 for (n=3; n<=NF && $$n !~ "#"; n++) print $$n"\t"$$0 \
                        }}' $^ | $(DBLOAD) -r -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

networks.byaddr: $(NETWORKS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 !~ "#" && $$1 != "") print $$2"\t"$$0 }' $^ \
                | $(DBLOAD) -r -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

protocols.byname: $(PROTOCOLS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 !~ "#" && $$1 != "") { print $$1"\t"$$0; \
                for (n=3; n<=NF && $$n !~ "#"; n++) \
                print $$n"\t"$$0}}' $^ | $(DBLOAD) -r -i $^ \
                                                -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

protocols.bynumber: $(PROTOCOLS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 !~ "#" && $$1 != "") print $$2"\t"$$0 }' $^ \
                | $(DBLOAD) -r -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

rpc.byname: $(RPC) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 !~ "#"  && $$1 != "") { print $$1"\t"$$0; \
                for (n=3; n<=NF && $$n !~ "#"; n++)  print $$n"\t"$$0 \
                        }}' $^ | $(DBLOAD) -r -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

rpc.bynumber: $(RPC) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 !~ "#" && $$1 != "") print $$2"\t"$$0 }' $^ \
                | $(DBLOAD) -r -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

services.byname: $(SERVICES) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 !~ "#" && $$1 != "") print $$2"\t"$$0 }' $^ \
                        | $(DBLOAD) -r -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

passwd.byname: $(PASSWD) Makefile
        @echo "Updating $@..."
        @$(UMASK); \
        $(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$3 >= $(MINUID) ) \
           print $$1"\t"$$0 }' $^ | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

passwd.byuid: $(PASSWD) Makefile
        @echo "Updating $@..."
        @$(UMASK); \
        $(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$3 >= $(MINUID) ) \
           print $$3"\t"$$0 }' $^ | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

shadow.byname: $(SHADOW) Makefile
        @echo "Updating $@..."
        @$(UMASK); \
        $(AWK) -F: '!/^[-+#]/ { if ($$1 != "" ) print $$1"\t"$$0 }' $^ \
                | $(DBLOAD) -s -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

group.byname: $(GROUP) Makefile
        @echo "Updating $@..."
        @$(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$3 >= $(MINGID) ) \
                                        print $$1"\t"$$0 }' $^ \
                | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

group.bygid: $(GROUP) Makefile
        @echo "Updating $@..."
        @$(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$3 >= $(MINGID) ) \
                                        print $$3"\t"$$0 }' $^ \
                | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

$(NETID):
netid.byname: $(GROUP) $(PASSWD) $(HOSTS) $(NETID) Makefile
        @echo "Updating $@..."
        @$(MKNETID) -q -p $(PASSWD) -g $(GROUP) -h $(HOSTS) -d $(DOMAIN) \
                -n $(NETID) | $(DBLOAD) -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

mail.aliases: $(ALIASES) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if ($$1 != "" && $$1 !~ "#" && $$1 != "+") \
                print $$0 }' $^ | $(DBLOAD) --aliases \
                        -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

publickey.byname: $(PUBLICKEYS) Makefile
        @echo "Updating $@..."
        @$(AWK) '{ if($$1 !~ "#" && $$1 != "") { print $$1"\t"$$2 }}' $^ \
                | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        @$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

auto.master: $(AUTO_MASTER) Makefile
        @echo "Updating $@..."
        -@sed -e "/^#/d" -e s/#.*$$// $^ | $(DBLOAD) -i $^ \
                -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

auto.home: $(AUTO_HOME) Makefile
        @echo "Updating $@..."
        -@sed -e "/^#/d" -e s/#.*$$// $^ | $(DBLOAD) -i $^ \
                -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

amd.home: $(AMD_HOME) Makefile
        @echo "Updating $@..."
        -@sed -e "s/#.*$$//" -e "/^$$/d" $^ | \
        $(AWK) '{\
                for (i = 1; i <= NF; i++)\
                   if (i == NF) { \
                      if (substr($$i, length($$i), 1) == "\\") \
                           printf("%s", substr($$i, 1, length($$i) -1)); \
                       else \
                          printf("%s\n",$$i); \
                      } \
                   else \
                      printf("%s ",$$i);\
                }' | $(DBLOAD) -i $^ -o $(YPMAPDIR)/$@ - $@
        -@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

 
 
 

1. Redhat 5.1 Notebook Install Problem (fwd)

Hi! I've had exactly the same problem as you on a
Compaq LTE5100, P90, 8Megs RAM, 800 Meg Drive (also
a notebook)

I've also tried installing via NFS (PCMCIA ethernet), but the
supplementary disk still hangs when running disc druid.

I suspect it's a out-of-memory problem, but havent been able to confirm
it. The fact that we both have problems with notebooks
suggests that it could be a notebook-related problem.

If anyone finds out what the problem is, please let me know!

Regards.
/Oskar

2. How to change background image in CDE

3. Solaris 2.5.1 NIS client with a RedHat Enterprise ES release 3 NIS master..

4. <> Sound Driver 2.90 <>

5. NIS + as a NIS master server?

6. How to delete a line with conditions ?

7. NIS+ master server convert to NIS client

8. ELSA Victory Erazor Video-In

9. Solaris 2.3 w/NIS+ Upgrade to 2.5 w/ NIS+ (Master Server)?

10. Multiple NIS domains served from one NIS Master server?

11. Installed NIS+ master root server - keylogins fail

12. How to install ppp server under RedHat 5.1?

13. [Fwd: Redhat 5.1 BASH compiles, but EXECUTABLEs don't run?]