6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / man / man1m / pwck.1m
blob3506fbc7fe143bbac1f79f62bea44218f123afb7
1 '\" te
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"
7 .SH NAME
8 pwck, grpck \- password/group file checkers
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/pwck\fR [\fIfilename\fR]
13 .fi
15 .LP
16 .nf
17 \fB/usr/sbin/grpck\fR [\fIfilename\fR]
18 .fi
20 .SH DESCRIPTION
21 .sp
22 .LP
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.
27 .sp
28 .LP
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.
36 .sp
37 .LP
38 The default group file is \fB/etc/group\fR.
39 .sp
40 .LP
41 All messages regarding inconsistent entries are placed on the \fBstderr\fR
42 stream.
43 .SH FILES
44 .RS +4
45 .TP
46 .ie t \(bu
47 .el o
48 \fB/etc/group\fR
49 .RE
50 .RS +4
51 .TP
52 .ie t \(bu
53 .el o
54 \fB/etc/passwd\fR
55 .RE
56 .SH SEE ALSO
57 .sp
58 .LP
59 \fBgroupdel\fR(1M), \fBgroupmod\fR(1M), \fBgetpwent\fR(3C), \fBgroup\fR(4),
60 \fBpasswd\fR(4), \fBattributes\fR(5)
61 .SH DIAGNOSTICS
62 .sp
63 .LP
64 Group entries in \fB/etc/group\fR with no login names are flagged.
65 .sp
66 .ne 2
67 .na
68 \fB\fBGroup file '\fR\fIfilename\fR\fB\&' is empty\fR\fR
69 .ad
70 .sp .6
71 .RS 4n
72 The \fB/etc/passwd\fR or \fB/etc/group\fR file is an empty file.
73 .RE
75 .sp
76 .ne 2
77 .na
78 \fB\fBcannot open file\fR \fIfilename\fR\fB: No such file or directory\fR\fR
79 .ad
80 .sp .6
81 .RS 4n
82 The \fB/etc/passwd\fR or \fB/etc/group\fR file does not exist.
83 .RE
85 .SH NOTES
86 .sp
87 .LP
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.