version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
PWCK |
|
|
2 |
!!!PWCK |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
FILES |
|
|
8 |
SEE ALSO |
|
|
9 |
DIAGNOSTICS |
|
|
10 |
AUTHOR |
|
|
11 |
---- |
|
|
12 |
!!NAME |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
pwck - verify integrity of password files |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__pwck__ [[__-r__] [[''passwd shadow''] |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
__pwck__ verifies the integrity of the system |
|
|
24 |
authentication information. All entries in the |
|
|
25 |
''/etc/passwd'' and ''/etc/shadow'' are checked to see |
|
|
26 |
that the entry has the proper format and valid data in each |
|
|
27 |
field. The user is prompted to delete entries that are |
|
|
28 |
improperly formatted or which have other incorrectable |
|
|
29 |
errors. |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
Checks are made to verify that each entry has |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
- the correct number of fields |
|
|
36 |
- a unique user name |
|
|
37 |
- a valid user and group identifier |
|
|
38 |
- a valid primary group |
|
|
39 |
- a valid home directory |
|
|
40 |
- a valid login shell |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
The checks for correct number of fields and unique user name |
|
|
44 |
are fatal. If the entry has the wrong number of fields, the |
|
|
45 |
user will be prompted to delete the entire line. If the user |
|
|
46 |
does not answer affirmatively, all further checks are |
|
|
47 |
bypassed. An entry with a duplicated user name is prompted |
|
|
48 |
for deletion, but the remaining checks will still be made. |
|
|
49 |
All other errors are warning and the user is encouraged to |
|
|
50 |
run the __usermod__ command to correct the |
|
|
51 |
error. |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
The commands which operate on the ''/etc/passwd'' file |
|
|
55 |
are not able to alter corrupted or duplicated entries. |
|
|
56 |
__pwck__ should be used in those circumstances to remove |
|
|
57 |
the offending entry. |
|
|
58 |
!!OPTIONS |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
By default, __pwck__ operates on the files |
|
|
62 |
''/etc/passwd'' and ''/etc/shadow''. The user may |
|
|
63 |
select alternate files with the ''passwd'' and |
|
|
64 |
''shadow'' parameters. Additionally, the user may execute |
|
|
65 |
the command in read-only mode by specifying the __-r__ |
|
|
66 |
flag. This causes all questions regarding changes to be |
|
|
67 |
answered __no__ without user intervention. |
|
|
68 |
!!FILES |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
/etc/passwd - user account information |
|
|
72 |
/etc/shadow - encrypted password information |
|
|
73 |
/etc/group - group information |
|
|
74 |
!!SEE ALSO |
|
|
75 |
|
|
|
76 |
|
|
|
77 |
usermod(8), group(5), passwd(5), |
|
|
78 |
shadow(5) |
|
|
79 |
!!DIAGNOSTICS |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
The __pwck__ command exits with the following |
|
|
83 |
values: |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
0 |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
Success |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
1 |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
Syntax Error |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
2 |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
One or more bad password entries |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
3 |
|
|
105 |
|
|
|
106 |
|
|
|
107 |
Cannot open password files |
|
|
108 |
|
|
|
109 |
|
|
|
110 |
4 |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
Cannot lock password files |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
5 |
|
|
117 |
|
|
|
118 |
|
|
|
119 |
Cannot update password files |
|
|
120 |
!!AUTHOR |
|
|
121 |
|
|
|
122 |
|
|
|
123 |
Julianne Frances Haugh (jfh@austin.ibm.com) |
|
|
124 |
---- |