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

NAME

6       pwck - verify integrity of password files
7

SYNOPSIS

9       pwck [-q] [-s] [passwd shadow]
10
11       pwck [-q] [-r] [passwd shadow]
12

DESCRIPTION

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

OPTIONS

47       The options which apply to the pwck command are:
48
49       -q Report errors only. The warnings which do not require any action
50          from the user won't be displayed.
51
52       -r Execute the pwck command in read-only mode.
53
54       -s Sort entries in /etc/passwd and /etc/shadow by UID.
55
56       By default, pwck operates on the files /etc/passwd and /etc/shadow. The
57       user may select alternate files with the passwd and shadow parameters.
58

FILES

60       /etc/group
61          Group account information.
62
63       /etc/passwd
64          User account information.
65
66       /etc/shadow
67          Secure user account information.
68

SEE ALSO

70       group(5), passwd(5), shadow(5), usermod(8).
71

EXIT VALUES

73       The pwck command exits with the following values:
74
75       0  success
76
77       1  invalid command syntax
78
79       2  one or more bad password entries
80
81       3  can't open password files
82
83       4  can't lock password files
84
85       5  can't update password files
86
87
88
89
90System Management Commands        07/30/2006                           PWCK(8)
Impressum