Copyright (c) 2000, Sun Microsystems, Inc.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
/etc/grpck [filename]
The grpck utility checks that a file in group(4) does not contain any errors; it checks the /etc/group file by default.
groups(1), group(4), passwd(4), attributes(5)
An entry in the group file does not have the proper number of fields.
The group name field of an entry is empty.
The group name in an entry contains characters other than lower-case letters and digits.
The group ID field in an entry is not numeric or is greater than 65535.
A login name in the list of login names in an entry is null.
A login name in the list of login names in an entry is not in the password file.
A line (including the newline character) in the group file exceeds the maximum length of 512 characters.
A login name appears more than once in the list of login names for a group file entry.
The program cannot allocate memory in order to continue.
A login name's group membership exceeds the maximum, NGROUPS_MAX.