autofs is not working with NIS

Sergio Belkin sekinmor at yahoo.com.ar
Sat Nov 13 20:49:35 GMT 2004


I have a NIS server and a NIS client, and I don't
achieve to work the autofs. I'd want to know what is
happening:
Some file contents on the server side:
** /etc/exports
/home   192.168.1.0/24(async,rw,no_root_squash)

** /etc/auto.master
/home    yp auto.home     --timeout=60
** /etc/auto.home
* -rw,nfs,soft,intr,nosuid,rsize=8192,wsize=8192      
192.168.1.254:/home/&

Both, on the server and client machines is running
ypbind. On the NIS server, are also running  ypserv, 
yppasswdd, portmap, nfslock, nfs, y nfalock. On the
client side autofs is running too.
The file /etc/yp.conf is as follows: 
domain midom server 192.168.1.254
The file /var/yp/securenet is as follows:
host    192.168.1.2
host    192.168.1.254
host    127.0.0.1

And /var/yp/Makefile is:
#
# Makefile for the NIS databases
#
# 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. If you
# create shadow maps, the UserID for a shadow entry is
taken from
# the passwd file. If no entry is found, this shadow
entry is
# ignored.
# MINGID is the lowest gid that will be included in
the group maps.
MINUID=500
MINGID=500

# Should we merge the passwd file with the shadow file
?
# MERGE_PASSWD=true|false
MERGE_PASSWD=true

# Should we merge the group file with the gshadow file
?
# MERGE_GROUP=true|false
MERGE_GROUP=true

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

------snip------

all:  passwd group hosts rpc services netid protocols
auto.master auto.home
	# mail netgrp publickey networks ethers bootparams
printcap \
	# amd.home auto.master auto.home auto.local
passwd.adjunct \
	# timezone locale netmasks
	
------snip------

On the client side the /etc/yp.conf is the same as on
the server side.
*File /etc/passwd ends with:
+::::::
*File /etc/group ends with:
+:::
File /etc/shadow ends with:
+::0:0:0::::
If I mount the /home directory by hand the users enter
into their exported homes, But that is not working if
using autofs, and the output is:
No directory /home/linux!
Logging in with home = "/".

And the  /var/log/messages output:
Nov 13 17:02:29 patrick ypserv[1144]: refused connect
from 192.168.1.2:702 to procedure ypproc_match
(casini,yp;-4)
Nov 13 17:02:32 patrick ypserv[1144]: refused connect
from 192.168.1.2:704 to procedure ypproc_match
(casini,yp;-4)

Of course I have read documentation, but I don't
realize how to solve this problem. I hope you could
help me. Thanks in advance!

=====
Sergio Belkin¿Se imagina si su Software fuera Libre?


	

	
		
___________________________________ 
¡Llevate a Yahoo! en tu Unifón! 
Ahora podés usar Yahoo! Messenger en tu Unifón, en cualquier momento y lugar. 
Encontrá más información en: http://ar.mobile.yahoo.com/sms.html 



More information about the linux-nisplus mailing list