1GRPCK(8)                  System Management Commands                  GRPCK(8)
2
3
4

NAME

6       grpck - verify integrity of group files
7

SYNOPSIS

9       grpck [-r] [group shadow]
10

DESCRIPTION

12       grpck verifies the integrity of the system authentication information.
13       All entries in the /etc/group and /etc/gshadow are checked to see that
14       the entry has the proper format and valid data in each field. The user
15       is prompted to delete entries that are improperly formatted or which
16       have other uncorrectable errors.
17
18       Checks are made to verify that each entry has:
19
20       ·  the correct number of fields
21
22       ·  a unique group name
23
24       ·  a valid list of members and administrators
25
26
27The checks for correct number of fields and unique group name are fatal. If
28the entry has the wrong number of fields, the user will be prompted to delete
29the entire line. If the user does not answer affirmatively, all further checks
30are bypassed. An entry with a duplicated group name is prompted for deletion,
31but the remaining checks will still be made. All other errors are warnings and
32the user is encouraged to run the groupmod command to correct the error.
33
34The commands which operate on the /etc/group file are not able to alter
35corrupted or duplicated entries.  grpck should be used in those circumstances
36to remove the offending entry.
37

OPTIONS

39       By default, grpck operates on the files /etc/group and /etc/gshadow.
40       The user may select alternate files with the group and shadow
41       parameters. Additionally, the user may execute the command in read-only
42       mode by specifying the -r flag. This causes all questions regarding
43       changes to be answered no without user intervention.  grpck can also
44       sort entries in /etc/group and /etc/gshadow by GID. To run it in sort
45       mode pass it -s flag. No checks are performed then, it just sorts.
46

FILES

48       /etc/group
49          Group account information.
50
51       /etc/gshadow
52          Secure group account information.
53
54       /etc/passwd
55          User account information.
56

SEE ALSO

58       group(5), passwd(5), shadow(5), groupmod(8).
59

EXIT VALUES

61       The grpck command exits with the following values:
62
63       0  success
64
65       1  invalid command syntax
66
67       2  one or more bad group entries
68
69       3  can't open group files
70
71       4  can't lock group files
72
73       5  can't update group files
74
75
76
77
78System Management Commands        07/30/2006                          GRPCK(8)
Impressum