Date: Thu, 8 May 1997 16:29:07 -0400 (EDT) From: Charles Owens <owensc@enc.edu> To: questions list FreeBSD <freebsd-questions@freebsd.org> Cc: Andrzej Szydlo <andrzej@tu.kielce.pl> Subject: Re: NIS/yp '+' entries in passwd and group Message-ID: <Pine.FBS.3.93.970508162102.23123L-100000@dingo.its.enc.edu>
next in thread | raw e-mail | index | archive | help
Jim Service <jservice@OHT.Hydro.ON.CA> writes: >>>>> "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 > 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 -------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.FBS.3.93.970508162102.23123L-100000>