*BSD News Article 73855


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!sgigate.sgi.com!news1.best.com!nntp.primenet.com!news.mathworks.com!newsfeed.internetmci.com!News.LiveNet.Net!valhalla
From: jsloan@LiveNet.Net (Jim Sloan)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD as an NIS client how?
Date: Tue, 16 Jul 96 04:36:18 GMT
Organization: LiveNet, Inc.
Lines: 33
Message-ID: <4sf682$3io_006@news.livenet.net>
References: <4sclbk$b5l@ns.cs.hku.hk>
NNTP-Posting-Host: valhalla.livenet.net
X-Newsreader: News Xpress 2.0 Beta #0

In article <4sclbk$b5l@ns.cs.hku.hk>, ctkwan@cs.hku.hk (Doug Kwan ~{9XUq5B~}) wrote:
>I have a Linux box running on my LAN as an NIS server. Recently I have
>install FreeBSD on an machine and I would like to user the FreeBSD machine
>as a client. I set up the necessary things I would expect on a typical
>Unix NIS client (domainname, ypbind ...blah blah). The FreeBSD box is
>able to talk with the NIS server and I can actuall get NIS maps with
>ypcat on the client. Groups work properly when I added a "+" at the
>end of /etc/group. However, I could not make the FreeBSD box to use
>the passwd NIS map. I tried atting a "+" to both /etc/passwd and 
>/etc/master.passwd but it does not work. What gives? Do to have to
>use shadow password on the Linux box and make an NIS map for
>mater.passwd also?
>
>--
>Doug Kwan ~{9XUq5B~}
>Graduate Student
>Department of Computer Science
>The University of Hong Kong

You can't just add to the /etc/master.passwd, use vipw, which will edit 
/etc/master.passwd then run pwd_mkdb to create the password database.  If you 
just edit the /etc/master.passwd then you need to run pwd_mkdb to update the 
database.

------------------------------------------------------------------------
 Jim Sloan                        jsloan@livenet.net
 Vice President
 LiveNet, Inc.                         
 413 Davis St. Suite 106          Full Service Internet Provider
 Virginia Beach VA 23462          Dialup and dedicated connections
 Ph: 804-499-9328                 Virtual Web, Email, and FTP hosting
 http://www.livenet.net           info@livenet.net webmaster@livenet.net
------------------------------------------------------------------------