2 .\" Copyright 1989 AT&T , Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved.
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH PWCK 1M "Aug 27, 2008"
8 pwck, grpck \- password/group file checkers
12 \fB/usr/sbin/pwck\fR [\fIfilename\fR]
17 \fB/usr/sbin/grpck\fR [\fIfilename\fR]
23 \fBpwck\fR scans the password file and notes any inconsistencies. The checks
24 include validation of the number of fields, login name, user ID, group ID, and
25 whether the login directory and the program-to-use-as-shell exist. The default
26 password file is \fB/etc/passwd\fR.
29 \fBgrpck\fR verifies all entries in the \fBgroup\fR file. This verification
30 includes a check of the number of fields, group name, group ID, whether any
31 login names belong to more than \fBNGROUPS_MAX\fR groups, and that all login
32 names appear in the password file. \fBgrpck\fR also issues a warning if it
33 finds an entry (a single line) in the \fBgroup\fR file longer than 2047
34 characters. Such an entry causes group maintenance commands, such as
35 \fBgroupdel\fR(1M) and \fBgroupmod\fR(1M), to fail.
38 The default group file is \fB/etc/group\fR.
41 All messages regarding inconsistent entries are placed on the \fBstderr\fR
59 \fBgroupdel\fR(1M), \fBgroupmod\fR(1M), \fBgetpwent\fR(3C), \fBgroup\fR(4),
60 \fBpasswd\fR(4), \fBattributes\fR(5)
64 Group entries in \fB/etc/group\fR with no login names are flagged.
68 \fB\fBGroup file '\fR\fIfilename\fR\fB\&' is empty\fR\fR
72 The \fB/etc/passwd\fR or \fB/etc/group\fR file is an empty file.
78 \fB\fBcannot open file\fR \fIfilename\fR\fB: No such file or directory\fR\fR
82 The \fB/etc/passwd\fR or \fB/etc/group\fR file does not exist.
88 If no filename argument is given, \fBgrpck\fR checks the local group file,
89 \fB/etc/group\fR, and also makes sure that all login names encountered in the
90 checked group file are known to the system \fBgetpwent\fR(3C) routine. This
91 means that the login names may be supplied by a network name service.