| Summary: | chkgrp vs group(5) inconsistency | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | udo <udo> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.1-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-bugs->davidn Let's see if we can get Mr Nugent to take a look at this. :-) State Changed From-To: open->closed chkgrp(8) is not lying to you; the correct NIS group(5) entry might look like this: +:*:: Please re-read the group(5) manpage, which says, in particular: : The file </etc/group> consists of newline separated ASCII : records, one per group, containing four colon `:' separated : fields. These fields are as follows: : group Name of the group. : passwd Group's encrypted password. : gid The group's decimal ID. : member Group members. And later on: : An entry whose name field consists of a single plus sign ^^^^^^^^^^^^^^^^ : with no group name following, will be replaced with the : entire YP/NIS ``group.byname'' map. But this certainly does not preclude the other fields from being filled in (with something). Responsible Changed From-To: davidn->freebsd-bugs |
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) Fix: chkgrp should be changed to accept NIS entries. Until then, the problem should be mentioned in chkgrp(8): How-To-Repeat: Add a line with a single plus sign to the end of your /etc/groups file and run chkgroup.