From owner-freebsd-questions Thu May 8 13:09:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA16430 for questions-outgoing; Thu, 8 May 1997 13:09:31 -0700 (PDT) Received: from main.gbdata.com (tel_ppp0001.livingston.net [207.22.211.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA16312 for ; Thu, 8 May 1997 13:06:55 -0700 (PDT) Received: (from gclarkii@localhost) by main.gbdata.com (8.8.5/8.8.5) id PAA02455; Thu, 8 May 1997 15:06:16 -0500 (CDT) From: Gary Clark II Message-Id: <199705082006.PAA02455@main.gbdata.com> Subject: Re: NIS/yp '+' entries in passwd and group To: jservice@OHT.Hydro.ON.CA Date: Thu, 8 May 1997 15:06:15 -0500 (CDT) Cc: andrzej@tu.kielce.pl, freebsd-questions@FreeBSD.ORG In-Reply-To: <199705081306.JAA15803@pc-servicej.rd.hydro.on.ca> from Jim Service at "May 8, 97 09:06:27 am" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Jim Service wrote: > >>>>> "Andrzej" == Andrzej Szydlo 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