From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1EVaBM-0004HE-OA for garchives@archives.gentoo.org; Fri, 28 Oct 2005 19:46:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j9SJj0T5018966; Fri, 28 Oct 2005 19:45:00 GMT Received: from thing.com (thing.com [216.39.145.27]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j9SJiwKF032395 for ; Fri, 28 Oct 2005 19:44:59 GMT Received: from thing.com (thing.com [127.0.0.1]) by thing.com (8.13.4/8.13.3) with ESMTP id j9SJiurG022281 for ; Fri, 28 Oct 2005 12:44:57 -0700 Received: from localhost (herber@localhost) by thing.com (8.13.4/8.13.4/Submit) with ESMTP id j9SJiuaG022275 for ; Fri, 28 Oct 2005 12:44:56 -0700 Date: Fri, 28 Oct 2005 12:44:56 -0700 (PDT) From: Steve Herber To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] NIS problem In-Reply-To: <435EA887.8090509@csie.nctu.edu.tw> Message-ID: References: <435EA887.8090509@csie.nctu.edu.tw> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Archives-Salt: 5f633ce1-1062-4afc-96ef-6c81d772fc4d X-Archives-Hash: 1a8cdde84d375a6e950ac4426bac9185 I think I have run into this problem in the past but in a different way. I found some upgrade processes would fail and a strace pointed to libnss_nis.o. To work around it I would temporally remove the nis entry from my/etc/nsswitch.conf file. My problems have cleared up over the past year. I attributed them to bugs in libnss_nis. I have not run into your specific problem. I seldom reference UID's that are not in my NIS system or in the local /etc/password file. Good luck, Steve Herber herber@thing.com work: 206-221-7262 Security Engineer, UW Medicine, IT Services home: 425-454-2399 On Wed, 26 Oct 2005, Weicheng Pan wrote: > Hi all: > I meet a very strange problem on my NIS. I test two cases, which one is > a Gentoo i386 box, and the other is Gentoo AMD64 box. > I referenced this page: > http://www.linux-nis.org/nis-howto/HOWTO/settingup_client.html , and can > successfully login. > > But when my directory has unknown UID on AMD64 box, it will return a > SEGMENTATION FAULT error. > > Then I use the following code to verify the client settings: > > Finally, I found that getpwnam() call will cause segmentation fault > rather than return NULL on pass a non-exist username on AMD64 box. > > Is anybody has encounter this situation? > > Regards, > Weicheng. > > -- > gentoo-amd64@gentoo.org mailing list > -- gentoo-amd64@gentoo.org mailing list