From owner-freebsd-bugs Wed Sep 6 0:40:11 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DC3E537B446 for ; Wed, 6 Sep 2000 00:40:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA58236; Wed, 6 Sep 2000 00:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from scan1.fhg.de (scan1.fhg.de [153.96.1.35]) by hub.freebsd.org (Postfix) with ESMTP id 88AD237B424 for ; Wed, 6 Sep 2000 00:30:11 -0700 (PDT) Received: from scan1.fhg.de (localhost [127.0.0.1]) by scan1.fhg.de (8.9.3/8.9.3) with ESMTP id JAA14517 for ; Wed, 6 Sep 2000 09:30:09 +0200 (MET DST) Received: from iml2.iml.fhg.de (iml2.iml.fhg.de [153.96.188.3]) by scan1.fhg.de (8.9.3/8.9.3) with ESMTP id JAA14511 for ; Wed, 6 Sep 2000 09:30:09 +0200 (MET DST) Received: from antivirus.iml.fhg.de (antivirus.iml.fhg.de [153.96.189.119]) by iml2.iml.fhg.de (8.9.3/8.9.3) with ESMTP id JAA28867 for ; Wed, 6 Sep 2000 09:30:08 +0200 (MET DST) Received: (from udo@localhost) by antivirus.iml.fhg.de (8.11.0/8.11.0) id e867U6734280; Wed, 6 Sep 2000 09:30:06 +0200 (CEST) (envelope-from udo) Message-Id: <200009060730.e867U6734280@antivirus.iml.fhg.de> Date: Wed, 6 Sep 2000 09:30:06 +0200 (CEST) From: Udo Erdelhoff To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/21074: chkgrp vs group(5) inconsistency Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 21074 >Category: bin >Synopsis: chkgrp vs group(5) inconsistency >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 06 00:40:03 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Udo Erdelhoff >Release: FreeBSD 4.1-STABLE i386 >Organization: Fraunhofer IML, Dortmund >Environment: 4.1-stable, last cvsup 05-SEP-2000 >Description: group(5) contains the following information ``YP/NIS INTERACTION The /etc/group file can be configured to enable the YP/NIS group database. An entry whose name field consists of a plus sign (`+') fol- lowed by a group name, will be replaced internally to the C library with the YP/NIS group entry for the named group. An entry whose name field consists of a single plus sign with no group name following, will be re- placed with the entire YP/NIS ``group.byname'' map.'' My /etc/group contains an entry that consists of a single plus sign and things work as expected (i.e. the whole YP/NIS map is imported). grpchk doesn't like this entry at all: chkgrp: /etc/group: line 23: missing field(s) >How-To-Repeat: Add a line with a single plus sign to the end of your /etc/groups file and run chkgroup. >Fix: chkgrp should be changed to accept NIS entries. Until then, the problem should be mentioned in chkgrp(8): --- chkgrp.8.orig Wed Sep 6 09:21:22 2000 +++ chkgrp.8 Wed Sep 6 09:29:22 2000 @@ -82,3 +82,8 @@ .Sh BUGS Should check fields more thoroughly for allowed/disallowed characters, and the range of the group ID. +The +.Nm +utility will report errors for valid NIS-related entries, +especially lines containing a single plus character +.Po import whole map Pc . >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message