1pwck(1M)                System Administration Commands                pwck(1M)
2
3
4

NAME

6       pwck, grpck - password/group file checkers
7

SYNOPSIS

9       /usr/sbin/pwck [filename]
10
11
12       /usr/sbin/grpck [filename]
13
14

DESCRIPTION

16       pwck  scans the password file and notes any inconsistencies. The checks
17       include validation of the number of fields, login name, user ID,  group
18       ID,  and  whether  the  login directory and the program-to-use-as-shell
19       exist.  The default password file is /etc/passwd.
20
21
22       grpck  verifies all  entries  in  the  group  file.  This  verification
23       includes a check of the number of fields, group name, group ID, whether
24       any login names belong to more than NGROUPS_MAX groups,  and  that  all
25       login names appear in the password file. grpck also issues a warning if
26       it finds an entry (a single line) in the group file longer  than   2047
27       characters.   Such  an entry causes group maintenance commands, such as
28       groupdel(1M) and groupmod(1M), to fail.
29
30
31       The default group file is /etc/group.
32
33
34       All messages regarding inconsistent entries are placed  on  the  stderr
35       stream.
36

FILES

38           o      /etc/group
39
40           o      /etc/passwd
41

ATTRIBUTES

43       See attributes(5) for descriptions of the following attributes:
44
45
46
47
48       ┌─────────────────────────────┬─────────────────────────────┐
49       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │Availability                 │SUNWcsu                      │
52       └─────────────────────────────┴─────────────────────────────┘
53

SEE ALSO

55       groupdel(1M),    groupmod(1M),   getpwent(3C),   group(4),   passwd(4),
56       attributes(5)
57

DIAGNOSTICS

59       Group entries in /etc/group with no login names are flagged.
60
61       Group file 'filename' is empty
62
63           The /etc/passwd or /etc/group file is an empty file.
64
65
66       cannot open file filename: No such file or directory
67
68           The /etc/passwd or /etc/group file does not exist.
69
70

NOTES

72       If no filename argument is given,  grpck checks the local  group  file,
73       /etc/group, and also makes sure that all login names encountered in the
74       checked group file are known to the system  getpwent(3C) routine.  This
75       means that the login names may be supplied by a network name service.
76
77
78
79SunOS 5.11                        27 Aug 2008                         pwck(1M)
Impressum