AutoMount not being Pushed on NIS-help plz
Can anyone with NIS Knowledge help me out please??? _ Thanks in advance!
I have just configured a new auto mount point on my Solaris 9 NIS Server. We use this to push out the auto mount configurations.
It gets stuck with the message "updated auto.natools" after running the make command in /var/yp. If I use CTRL + C to kill it, it says "*** auto.natools.time removed."
All of the autmount point maps work fine except the auto_natools. I already compared the Makefile and auto mount maps with others and they seem to be correct. Here's my steps:
I edited the auto_master file
root@nis94 # cat /etc/auto_master
# Master map for automounter
#
+auto_master
#/net -hosts -nosuid
#/net -hosts -nosuid,nobrowse
#/dsdhome auto.home
#/xfn -xfn
/tools auto_tools
/natools auto_natools
/mnt auto_home
I created the /etc/auto_nahome
root@nis94 # cat /etc/auto_natools
* -rw filesserver2:/new/tools/&
I edited the Makefile in /var/yp
all: passwd group hosts networks rpc services protocols \
aliases publickey netmasks c2secure \
auto.master auto.home auto.tools auto.natools
auto.natools.time: $(DIR)/auto_natools
-@if [ -f $(DIR)/auto_natools ]; then \
sed -e "/^#/d" -e s/#.*$$// $(DIR)/auto_natools \
sed -e "/^#/d" -e s/#.*$$// $(DIR)/auto_natools \
| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.natools; \
touch auto.natools.time; \
echo "updated auto.natools"; \ <- It seems to get stuck after this part
if [ ! $(NOPUSH) ]; then \
$(YPPUSH) auto.natools; \
echo "pushed auto.natools"; \
else \
: ; \
fi \
else \
echo "couldn't find $(DIR)/auto_natools"; \
fi
auto.natools: auto.natools.time
$(DIR)/auto_natools:
Last edited by rhel5; 09-19-2009 at 02:16 PM.
|