From owner-freebsd-current@FreeBSD.ORG Fri Apr 18 09:51:26 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FF9B37B401 for ; Fri, 18 Apr 2003 09:51:26 -0700 (PDT) Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id C992643FD7 for ; Fri, 18 Apr 2003 09:51:25 -0700 (PDT) (envelope-from nectar@celabo.org) Received: from madman.celabo.org (madman.celabo.org [10.0.1.111]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "madman.celabo.org", Issuer "celabo.org CA" (verified OK)) by gw.nectar.cc (Postfix) with ESMTP id 4F0676A for ; Fri, 18 Apr 2003 11:51:25 -0500 (CDT) Received: by madman.celabo.org (Postfix, from userid 1001) id 9F58678C66; Fri, 18 Apr 2003 11:51:24 -0500 (CDT) Date: Fri, 18 Apr 2003 11:51:24 -0500 From: "Jacques A. Vidrine" To: current@freebsd.org Message-ID: <20030418165124.GE45899@madman.celabo.org> References: <20030418162813.GA714@juno.home.paeps.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030418162813.GA714@juno.home.paeps.cx> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.3i-ja.1 Subject: Re: Latest world NIS woes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 16:51:26 -0000 On Fri, Apr 18, 2003 at 06:28:13PM +0200, Philip Paeps wrote: > I'm also getting ssh to dump cores on me when I run it as a nis user. No > problems as a normal user. I have 'passwd: nis files' and 'group: nis files' > in my nsswitch.conf. > > Gdb tells me the following (after compiling ssh with symbols): > > (gdb) bt > #0 0x2828d1e5 in strlen () from /usr/lib/libc.so.5 > #1 0x282a1ba0 in .curbrk () from /usr/lib/libc.so.5 > #2 0x280a1e5c in pwcopy () from /usr/lib/libssh.so.2 > #3 0x0804cb41 in main (ac=1, av=0xbfbff7c8) > at /usr/src/crypto/openssh/ssh.c:261 > #4 0x0804c475 in _start () > (gdb) list > 227 init_rng(); > 228 > 229 /* > 230 * Save the original real uid. It will be needed later (uid-swapping > 231 * may clobber the real uid). > 232 */ > 233 original_real_uid = getuid(); > 234 original_effective_uid = geteuid(); > 235 > 236 /* > (gdb) > > Looks like it doesn't like the new nss-bits :-) Huh, probably one of the struct passwd fields is returned set to NULL, most likely pw_class (which shouldn't be filled-in if you are not root). What is the GDB output of `info reg' ? Cheers, -- Jacques A. Vidrine http://www.celabo.org/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se