1 .\"$Id: pwconv.8,v 1.10 2002/03/08 04:39:12 kloczek Exp $
2 .TH PWCONV 8 "26 Sep 1997"
4 pwconv, pwunconv, grpconv, grpunconv \- convert to and from shadow passwords and groups.
14 These four programs all operate on the normal and shadow password and
16 .IR /etc/passwd ", " /etc/group ", " /etc/shadow ", and " /etc/gshadow .
19 .RI "creates " shadow " from " passwd " and an optionally existing " shadow .
21 .RI "creates " passwd " from " passwd " and " shadow " and then removes " shadow .
23 .RI "creates " gshadow " from " group " and an optionally existing " gshadow .
25 .RI "creates " group " from " group " and " gshadow " and then removes " gshadow .
27 Each program acquires the necessary locks before conversion.
29 .BR pwconv " and " grpconv
30 are similiar. First, entries in the shadowed file which don't exist
31 in the main file are removed. Then, shadowed entries which don't have
32 `x' as the password in the main file are updated. Any missing
33 shadowed entries are added. Finally, passwords in the main file are
34 replaced with `x'. These programs can be used for initial conversion
35 as well to update the shadowed file if the main file is edited by
39 will use the values of
40 .BR PASS_MIN_DAYS ", " PASS_MAX_DAYS ", and " PASS_WARN_AGE
43 when adding new entries to
46 .RB "Likewise, " pwunconv " and " grpunconv
47 are similiar. Passwords in the main file are updated from the
48 shadowed file. Entries which exist in the main file but not in the
49 shadowed file are left alone. Finally, the shadowed file is removed.
51 Some password aging information is lost by
53 It will convert what it can.
55 Errors in the password or group files (such as invalid or duplicate
56 entries) may cause these programs to loop forever or fail in other
57 strange ways. Please run \fBpwck\fR and \fBgrpck\fR to correct any
58 such errors before converting to or from shadow passwords or groups.