OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / original / man8 / pwconv.8
1 .\"$Id: pwconv.8,v 1.10 2002/03/08 04:39:12 kloczek Exp $
2 .TH PWCONV 8 "26 Sep 1997"
3 .SH NAME
4 pwconv, pwunconv, grpconv, grpunconv \- convert to and from shadow passwords and groups.
5 .SH SYNOPSIS
6 .B pwconv
7 .br
8 .B pwunconv
9 .br
10 .B grpconv
11 .br
12 .B grpunconv
13 .SH DESCRIPTION
14 These four programs all operate on the normal and shadow password and
15 group files:
16 .IR /etc/passwd ", " /etc/group ", " /etc/shadow ", and " /etc/gshadow .
17
18 .B pwconv
19 .RI "creates " shadow " from " passwd " and an optionally existing " shadow .
20 .B pwunconv
21 .RI "creates " passwd " from " passwd " and " shadow " and then removes " shadow .
22 .B grpconv
23 .RI "creates " gshadow " from " group " and an optionally existing " gshadow .
24 .B grpunconv
25 .RI "creates " group " from " group " and " gshadow " and then removes " gshadow .
26
27 Each program acquires the necessary locks before conversion.
28
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
36 hand.
37
38 .B pwconv
39 will use the values of
40 .BR PASS_MIN_DAYS ", " PASS_MAX_DAYS ", and " PASS_WARN_AGE
41 from
42 .I /etc/login.defs
43 when adding new entries to
44 .IR /etc/shadow .
45
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.
50
51 Some password aging information is lost by
52 .BR pwunconv .
53 It will convert what it can.
54 .SH "BUGS"
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.
59 .SH "SEE ALSO"
60 .BR login.defs (5),
61 .BR grpck (8),
62 .BR pwck (8)