Commit | Line | Data |
---|---|---|
a949fc48 KB |
1 | .\" Copyright (c) 1983, 1991, 1993 |
2 | .\" The Regents of the University of California. All rights reserved. | |
adb93747 | 3 | .\" |
fc9a8f4d | 4 | .\" %sccs.include.redist.man% |
96efcec2 | 5 | .\" |
a949fc48 | 6 | .\" @(#)vipw.8 8.1 (Berkeley) %G% |
adb93747 | 7 | .\" |
b42074ab CL |
8 | .Dd |
9 | .Dt VIPW 8 | |
10 | .Os BSD 4 | |
11 | .Sh NAME | |
12 | .Nm vipw | |
13 | .Nd edit the password file | |
14 | .Sh SYNOPSIS | |
15 | .Nm vipw | |
16 | .Sh DESCRIPTION | |
17 | .Nm Vipw | |
18 | edits the password file after setting the appropriate locks, | |
19 | and does any necessary processing after the password file is unlocked. | |
20 | If the password file is already locked for editing by another user, | |
21 | .Nm vipw | |
22 | will ask you | |
23 | to try again later. The default editor for | |
24 | .Nm vipw | |
25 | is | |
26 | .Xr vi 1 . | |
27 | .Pp | |
28 | .Nm Vipw | |
29 | performs a number of consistency checks on the password entries, | |
30 | and will not allow a password file with a | |
31 | .Dq mangled | |
32 | entry to be | |
33 | installed. | |
55a32a16 | 34 | If |
b42074ab CL |
35 | .Nm vipw |
36 | rejects the new password file, the user is prompted to re-enter | |
37 | the edit session. | |
38 | .Pp | |
39 | Once the information has been verified, | |
40 | .Nm vipw | |
41 | uses | |
42 | .Xr pwd_mkdb 8 | |
43 | to update the user database. This is run in the background, and, | |
44 | at very large sites could take several minutes. Until this update | |
45 | is completed, the password file is unavailable for other updates | |
46 | and the new information is not available to programs. | |
47 | .Sh ENVIRONMENT | |
48 | If the following environment variable exists it will be utilized by | |
49 | .Nm vipw : | |
50 | .Bl -tag -width EDITOR | |
51 | .It Ev EDITOR | |
52 | The editor specified by the string | |
53 | .Ev EDITOR | |
54 | will be invoked instead of the default editor | |
55 | .Xr vi 1 . | |
56 | .El | |
57 | .Sh SEE ALSO | |
58 | .Xr chpass 1 , | |
59 | .Xr passwd 1 , | |
60 | .Xr passwd 5 , | |
61 | .Xr adduser 8 , | |
62 | .Xr pwd_mkdb 8 | |
63 | .Sh HISTORY | |
64 | The | |
65 | .Nm | |
66 | command appeared in | |
67 | .Bx 4.0 . |