Pick a Free OS

User login

Navigation

NIS on Linux

print $$1"t"$$0 }' | $(DBLOAD) -i $(GROUP) -o $(YPMAPDIR)/$@ -

$@

@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@ group.bygid: $(GROUP) $(GSHADOW) $(YPDIR)/Makefile

@echo "Updating $@..." $(MERGER) -g $(GROUP) $(GSHADOW) |

$(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$3 >= $(MINGID) )

print $$3"t"$$0 }' | $(DBLOAD) -i $(GROUP) -o $(YPMAPDIR)/$@ -

$@

@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

else

group.byname: $(GROUP) $(YPDIR)/Makefile

@echo "Updating $@..."

@$(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$3 >= $(MINGID) )

print $$1"t"$$0 }' $(GROUP)

| $(DBLOAD) -i $(GROUP) -o $(YPMAPDIR)/$@ - $@

@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@ group.bygid: $(GROUP) $(YPDIR)/Makefile

@echo "Updating $@..."

@$(AWK) -F: '!/^[-+#]/ { if ($$1 != "" && $$3 >= $(MINGID) )

print $$3"t"$$0 }' $(GROUP)

| $(DBLOAD) -i $(GROUP) -o $(YPMAPDIR)/$@ - $@

@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@ endif $(NETID):

netid.byname: $(GROUP) $(PASSWD) $(HOSTS) $(NETID) $(YPDIR)/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) $(YPDIR)/Makefile

@echo "Updating $@..."

@$(AWK) '{ if ($$1 != "" && $$1 !~ "#" && $$1 != "+")

print $$0 }' $(ALIASES) | $(DBLOAD) --aliases

i $(ALIASES) -o $(YPMAPDIR)/$@ - $@

@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@


publickey.byname: $(PUBLICKEYS) $(YPDIR)/Makefile

@echo "Updating $@..."

@$(AWK) '{ if($$1 !~ "#" && $$1 != "") { print $$1"t"$$2 }}'

$(PUBLICKEYS) | $(DBLOAD) -i $(PUBLICKEYS)

o $(YPMAPDIR)/$@ - $@

@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@

auto.master: $(AUTO_MASTER) $(YPDIR)/Makefile @echo "Updating $@..."

@sed -e "/^#/d" -e s/#.*$$// $(AUTO_MASTER) | $(DBLOAD)

i $(AUTO_MASTER) -o $(YPMAPDIR)/$@ - $@

@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@ auto.home: $(AUTO_HOME) $(YPDIR)/Makefile @echo "Updating $@..."

@sed -e "/^#/d" -e s/#.*$$// $(AUTO_HOME) | $(DBLOAD)

i $(AUTO_HOME) -o $(YPMAPDIR)/$@ - $@

@$(NOPUSH) || $(YPPUSH) -d $(DOMAIN) $@