From: Dave Martini 1 (martini@mrpeabody.llnl.gov)
Date: Thu Mar 25 2004 - 11:22:56 EST
I'm trying to make a new NIS map under Solaris 9.
This is what I've pasted into my /var/yp/Makefile
mounts.time: $(DIR)/mounts
@(awk 'BEGIN { FS=" "; OFS="\t"; } /^[a-zA-Z0-9_]/ { print $$1, $$0 }'\
$(DIR)/mounts $(CHKPIPE))| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/mounts.byname;
@touch mounts.time;
@echo "updated mounts";
@if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) mounts.byname; fi
@if [ ! $(NOPUSH) ]; then echo "pushed mounts"; fi
I also added the target called mounts to the "all" entry in the
Makefile. I also added
mounts: mounts.time
and the end of the Makefile.
When I type
# make mounts
it does create the mounts.byname map in the /var/yp/DOM directory.
I can issue a
makedbm -u mounts.byname
and it lists the contests and it looks fine.
But, when I type
# ypcat mounts
I get this error:
No such map in servers domain.
Am I missing some steps??
Thanks much.
Dave Martini
LLNL
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:21 EDT