Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 1997 15:06:15 -0500 (CDT)
From:      Gary Clark II <gclarkii@main.gbdata.com>
To:        jservice@OHT.Hydro.ON.CA
Cc:        andrzej@tu.kielce.pl, freebsd-questions@FreeBSD.ORG
Subject:   Re: NIS/yp '+' entries in passwd and group
Message-ID:  <199705082006.PAA02455@main.gbdata.com>
In-Reply-To: <199705081306.JAA15803@pc-servicej.rd.hydro.on.ca> from Jim Service at "May 8, 97 09:06:27 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Jim Service wrote:
> >>>>> "Andrzej" == Andrzej Szydlo <andrzej@tu.kielce.pl> writes:
> 
> Andrzej> Hi,
> Andrzej> How should '+' enries in /etc/passwd and /etc/group files look like
> Andrzej> and how do I add them for NIS/yp to work? I use FreeBSD 2.2 on both
> Andrzej> client and server.
> Andrzej> I tried to add +:*:: and some other combinations using vipw, but it
> Andrzej> always complained about wrong format.
> 
> This has worked for me. Put "+:" on the last line by itself to include *all*
> the yp users or "+user:::::::::" to include a particular user called "user".
> Vipw will complain about bad entries so you must edit /etc/master.passwd by
> hand.  Make a backup copy of /etc/master.passwd. Carefully edit
> /etc/master.passwd and add the NIS entries.  Execute pwd_mkdb
> /etc/master.passwd to "register" them.  If all goes well then cd ~user
> should do something on the client machine.

No...  Try a plain +:::::::::, it works.  The reason why vipw is barfing on
you is because you don't the colons.  You should NEVER have to edit 
master.passwd by hand.
For more information take a look at passwd(5), it is all in there.

> James (Jim) R.R. Service            Internet: jservice@oht.hydro.on.ca

Gary

-- 
Gary Clark II   (N5VMF) |    I speak only for myself and "maybe" my company 
gclarkii@GBData.COM     |          Member of the FreeBSD Doc Team 
  Providing Internet and ISP startups - http://WWW.GBData.com for information
       FreeBSD FAQ at ftp://ftp.FreeBSD.ORG/pub/FreeBSD/docs/FAQ.latin1 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705082006.PAA02455>