From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 06:24:51 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30A1A37B401 for ; Thu, 10 Apr 2003 06:24:51 -0700 (PDT) Received: from mail.duth.gr (mail.duth.gr [192.108.114.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68A6143FB1 for ; Thu, 10 Apr 2003 06:24:49 -0700 (PDT) (envelope-from bigbrother@bonbon.net) Received: from bigb3server.bbcluster.gr (b9-110.xan.duth.gr [193.92.211.110]) by mail.duth.gr (8.12.8p1/8.12.6) with ESMTP id h3ADOjof051058 (version=TLSv1/SSLv3 cipher=EDH-DSS-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 10 Apr 2003 16:24:46 +0300 (EEST) (envelope-from bigbrother@bonbon.net) Received: from macedon (macedon.vlsi.gr [192.168.3.226]) h3ADOWwn035201 for ; Thu, 10 Apr 2003 16:24:40 +0300 (EEST) (envelope-from bigbrother@bonbon.net) From: "Bigbrother" To: Date: Thu, 10 Apr 2003 16:24:39 +0300 Organization: Bigbrother Clustered Network Message-ID: <00ec01c2ff64$8cdb25e0$e203a8c0@macedon> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Subject: Strange syntax in /etc/netgroup causes core dump +SOLUTION X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2003 13:24:51 -0000 Because other people may have similar problems, I report the problem and solution to this list. Recently I upgrade one of my networks to use YP/NIS format. ---- matrix# uname -a FreeBSD matrix.XXXXXXX 4.7-RELEASE-p10 ---- In one machine I had a netgroup of --- cat /etc/netgroup matrix (,,) --- --- cat /etc/passwd +@matrix:*:::::/sbin/nologin --- Because I didn't want anybody to login to that server. This caused a lot of programs that read the passwd file to SEGFAULT with signal 11, and some others to core dump (like 'top', 'repquota' and others) on the offending machine. The solution was to remove the (,,) from the entry corresponding to that machine in /etc/netgroup And to change it to --- cat /etc/netgroup matrix --- >From that time I have no problem and everything works fine. I don't know if it is a bug or not, but the problem of core dumps without any warning made me searching and debbuging a lot of hours. Perhaps a minor bug fix should happen on the ypbind code, so applications that read the passwd file not to core dump when they find entries like that in netgroup files. Best Regards, BB