*BSD News Article 44527


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!gatech!swrinde!howland.reston.ans.net!nntp.crl.com!pacbell.com!nntp-hub2.barrnet.net!news3.near.net!news-server.bos.locus.com!troy.la.locus.com!troy.la.locus.com!sassan
From: sassan@locus.com (Sassan Behzadi)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: NIS/YP
Date: 23 May 1995 20:55:50 GMT
Organization: Locus Computing Corporation, Inc.
Lines: 57
Message-ID: <3pti4m$1odk@troy.la.locus.com>
NNTP-Posting-Host: troy.la.locus.com
X-Newsreader: TIN [version 1.2 PL2]


I'm trying to setup a BSD 2.0 system as an NIS client. I think
I've done all the right things: Set domainname, added a + entry
in the password file and run ypbind. It certainly sees my NIS server 
and I can even do ypcat's and a ypwhich, but it still ignores 
the NIS passwd map and doesn't allow any logins. I don't think
the login process is even quering the server since the "Password:" prompt
seems to come back immediately after I type in the username.

I searched through some of the mail and news archives and found
quiet a number of people who have had similar problems. The answers
to their problems were few and not always clear. Here's what I've seen
so far:

[] Create the directory /var/yp (I have).

[] Make sure you have a correct entry in your password file. 

	I think I do:    +:::::::::      via vipw

	which translates it to:   +:*:0:0::   in /etc/passwd

[] Set your domainname

	I think I have:

		domainname  blah-blah

	in /etc/rc.local


[] Run ypbind

	I am. Right after the above statement in /etc/rc.local


Are there other things? I.e. do I have to put the domainname in 
/etc/defaultdomain? Do I have to uncomment the kerberos stuff in rc.local?
Do I have to uncomment NIS in /etc/hosts.conf? (I don't think so, since
I'm using DNS for host name lookup?) Do I have to add a ypserver='IP'
command in rc.local? Must I have NIS markers in /etc/group as well as
the password file? May be the entry in master.passwd has to be:
+:*:0:0::0:0::/:/dev/null instead of +:::::::::  ?
Does this stuff even work :-)


Any ideas?

Thanks,

Sassan

--------------------------------------------------------------------------
Sassan Behzadi
sassan@locus.com