From owner-freebsd-questions Thu May 8 13:24:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA17350 for questions-outgoing; Thu, 8 May 1997 13:24:56 -0700 (PDT) Received: from itsdsv1.enc.edu (itsdsv1.enc.edu [207.95.42.241]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA17345 for ; Thu, 8 May 1997 13:24:54 -0700 (PDT) Received: from dingo.its.enc.edu (dingo.its.enc.edu [207.95.222.250]) by itsdsv1.enc.edu (8.7.5/8.7.3) with SMTP id QAA14923; Thu, 8 May 1997 16:24:01 -0400 (EDT) Date: Thu, 8 May 1997 16:29:07 -0400 (EDT) From: Charles Owens X-Sender: owensc@dingo.its.enc.edu Reply-To: Charles Owens To: questions list FreeBSD cc: Andrzej Szydlo Subject: Re: NIS/yp '+' entries in passwd and group Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jim Service writes: >>>>> "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 > Andrzej> it 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. Hmmm... in my experience if you use the correct format vipw will not complain at all. For all users I use "+:::::::::" For one users I use "+user:::::::::" (same as mentioned above) Works like a charm... Note: (and this confused me at first) when vipw processes these entries, the corresponding entries that it creates in /etc/passwd are: +:*:0:0::: +user:*:0:0::: (Note that I'm not using 2.1.8 or 2.2, so things _could_ be different now) --- ------------------------------------------------------------------------- Charles N. Owens Email: owensc@enc.edu http://www.enc.edu/~owensc Network & Systems Administrator Information Technology Services "Outside of a dog, a book is a man's Eastern Nazarene College best friend. Inside of a dog it's too dark to read." - Groucho Marx -------------------------------------------------------------------------