xref: /illumos-gate/usr/src/man/man1b/grpck.1b (revision 508a0e8cf1600b06c1f7361ad76e736710d3fdf8)
te
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]
GRPCK 1B "Jan 10, 2000"
NAME
grpck - check group database entries
SYNOPSIS

/etc/grpck [filename]
DESCRIPTION

The grpck utility checks that a file in group(4) does not contain any errors; it checks the /etc/group file by default.

FILES

/etc/group

SEE ALSO

groups(1), group(4), passwd(4), attributes(5)

DIAGNOSTICS
Too many/few fields

An entry in the group file does not have the proper number of fields.

No group name

The group name field of an entry is empty.

Bad character(s) in group name

The group name in an entry contains characters other than lower-case letters and digits.

Invalid GID

The group ID field in an entry is not numeric or is greater than 65535.

Null login name

A login name in the list of login names in an entry is null.

Logname not found in password file

A login name in the list of login names in an entry is not in the password file.

Line too long

A line (including the newline character) in the group file exceeds the maximum length of 512 characters.

Duplicate logname entry

A login name appears more than once in the list of login names for a group file entry.

Out of memory

The program cannot allocate memory in order to continue.

Maximum groups exceeded for logname

A login name's group membership exceeds the maximum, NGROUPS_MAX.