From owner-freebsd-questions Tue Jun 17 13:23:31 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id NAA05099 for questions-outgoing; Tue, 17 Jun 1997 13:23:31 -0700 (PDT) Received: from cs.iastate.edu (cs.iastate.edu [129.186.3.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA04996 for ; Tue, 17 Jun 1997 13:22:13 -0700 (PDT) Received: from popeye.cs.iastate.edu (popeye.cs.iastate.edu [129.186.3.4]) by cs.iastate.edu (8.8.5/8.7.1) with ESMTP id PAA05223; Tue, 17 Jun 1997 15:22:04 -0500 (CDT) Received: from localhost (ghelmer@localhost) by popeye.cs.iastate.edu (8.8.5/8.7.1) with SMTP id PAA10610; Tue, 17 Jun 1997 15:22:04 -0500 (CDT) X-Authentication-Warning: popeye.cs.iastate.edu: ghelmer owned process doing -bs Date: Tue, 17 Jun 1997 15:22:03 -0500 (CDT) From: Guy Helmer To: Richard Jones cc: freebsd-questions@FreeBSD.ORG Subject: Re: NIS from a Linux server In-Reply-To: <33A6C5DC.9963983@imcl.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 17 Jun 1997, Richard Jones wrote: > Guy Helmer wrote: > > > > On Tue, 17 Jun 1997, Richard Jones wrote: > > > > > annexia Linux 2.0.25 (RedHat 4.0) > > > virgil FreeBSD 2.2.1-release > > > > > > Oh dear! More problems with accessing a Linux server from > > > FreeBSD. > > > > > > I managed to configure the FreeBSD box as a NIS client by > > > editing /etc/sysconfig. I also added '+' to the end of > > > /etc/passwd, /etc/master.passwd and /etc/group. After rebooting, > > > I can see the NIS password maps using "ypcat passwd", ie: > > > > OK, but did you add the + line to the end of /etc/master.passwd via > > vipw(8)? If not, the line probably hasn't been added to the /etc/pwd.db > > and /etc/spwd.db databases, which is what the login and other commands use > > to lookup password entries. > > No. Because when I used "vipw" to edit the password > file, it would give the error: > > vipw: rebuilding the database ... > pwd_mkdb: corrupted entry > pwd_mkdb: at line #13 > > Line 13, needless to say, is the "+". I also tried adding > a line > > +::::::::: > > (9 ':'s) but that gave the same error. That's odd. On my 2.2-STABLE machine (post 2.2.2), adding that line (+:::::::::) to the password files via vipw worked fine (no error). No significant change has been made to usr.sbin/pwd_mkdb/pw_scan.c since the release of FreeBSD 2.0.5... Just trying to help, Guy Guy Helmer, Computer Science Grad Student, Iowa State - ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer