Thanks again.
I received two answers so far and they have solved my problem.
--------------------Original Question--------------------------------------
> Could someone please help me? I want to get NIS to distribute my automount
> maps. The documentation says that if the automounter is start with no
> options then it will automaitcally use the NIS map auto.master.
>
> I am running SunOS 4.1.1. I have added in the automount maps as stated in
> the manual.
>
> My NIS Makefile has these changes-----------------------------------------
>
> all: auto.master passwd group hosts ethers networks rpc services protocols \
> netgroup bootparams aliases publickey netid netmasks c2secure \
> auto.mips auto.vax2
>
> auto.master.time: $(DIR)/auto.master
> @(while read L; do echo $$L; done < $(DIR)/auto.master $(CHKPIPE)) | \
> (sed -e "/^#/d" -e s/#.*$$// -e "/^ *$$/d" $(CHKPIPE)) | \
> $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.master;
> @touch auto.master.time;
> @echo "updated auto.master";
> @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto.master; fi
> @if [ ! $(NOPUSH) ]; then echo "pushed auto.master"; fi
>
>
> auto.vax2.time: $(DIR)/auto.vax2
> @(while read L; do echo $$L; done < $(DIR)/auto.vax2 $(CHKPIPE)) | \
> (sed -e "/^#/d" -e s/#.*$$// -e "/^ *$$/d" $(CHKPIPE)) | \
> $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.vax2;
> @touch auto.vax2.time;
> @echo "updated auto.vax2";
>
> auto.mips.time: $(DIR)/auto.mips
> @(while read L; do echo $$L; done < $(DIR)/auto.mips $(CHKPIPE)) | \
> (sed -e "/^#/d" -e s/#.*$$// -e "/^ *$$/d" $(CHKPIPE)) | \
> $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.mips;
> @touch auto.mips.time;
> @echo "updated auto.mips";
> @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOM) auto.mips; fi
> @if [ ! $(NOPUSH) ]; then echo "pushed auto.mips"; fi
>
> auto.master: auto.master.time
> auto.vax2: auto.vax2.time
> auto.mips: auto.mips.time
>
> -----------------------------------------------------------
>
> auto.master looks like this-----------------------------
>
> /vax2 /etc/auto.vax2 -intr
> /mips /etc/auto.mips -intr
>
-------------------------------------------------------------------------------
>From danq@lemond.Colorado.EDU Thu Aug 6 17:29:05 1992
Well, you don't really say what problem you're having. I assume your Makefile is
working ok -- mine looks a little different, for example:
auto.master.time: $(DIR)/auto.master
-@if [ -f $(DIR)/auto.master ]; then \
sed -e "/^#/d" -e s/#.*$$// $(DIR)/auto.master \
| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.master; \
touch auto.master.time; \
echo "updated auto.master"; \
if [ ! $(NOPUSH) ]; then \
$(YPPUSH) auto.master; \
echo "pushed auto.master"; \
else \
: ; \
fi \
else \
echo "couldn't find $(DIR)/auto.master"; \
fi
However, I notice you have file references in your automount maps. Mine
use the NIS maps directly, eg:
auto.master
# Mount-point Map Mount-options
/- auto.direct intr,grpid
/spc auto.spc -rw,intr,grpid
/home auto.home -rw,intr,grpid
/net -hosts -rw,intr,grpid
auto.home
* -rw,grpid &:/export/home/&
auto.spc
# key mount-options location
tagg1 -rw,grpid tagg:/export/spc/tagg1
morgul1 -rw,grpid morgul:/export/spc/morgul1
I hope this helps you.
-- danq
Daniel Quinlan danq@lemond.colorado.edu
Joint Seismic Program
University of Colorado 303/492-4878
Physics Department, Campus Box 390
Boulder, CO 80309-0390
-------------------------------------------------------------------------------
>From issi!issi.com!vasey@cs.utexas.edu Thu Aug 6 20:38:30 1992
> ypcat auto.master looks like this---------------------
>
> /etc/auto.vax2 -intr
> /etc/auto.mips -intr
Here's the problem. You want references to these (subordinate) maps
to be looked up via NIS, not from a file. NIS map names look like
relative pathnames, eg, "auto.vax2". Anything with a leading /
(or embedded /) will be taken as a filename to be searched.
So try: /vax2 auto.vax2 -intr
/mips auto.mips -intr
... in your /etc/auto.master. And if you nuke the trailing /s in the
other maps, they should work OK as stated. Good luck!
------------------------------------------------------------------------------
Meg Grice (mlg@cstp.umkc.edu) Computer Science, UMKC
UNIX Systems Administrator 5100 Rockhill Road
USA:816-235-5212 Kansas City, MO 64110
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:46 CDT