Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Sep 2000 09:30:06 +0200 (CEST)
From:      Udo Erdelhoff <udo@iml.fhg.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/21074: chkgrp vs group(5) inconsistency
Message-ID:  <200009060730.e867U6734280@antivirus.iml.fhg.de>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009060730.e867U6734280>