1pwconv(1M) System Administration Commands pwconv(1M)
2
3
4
6 pwconv - installs and updates /etc/shadow with information from
7 /etc/passwd
8
10 pwconv
11
12
14 The pwconv command creates and updates /etc/shadow with information
15 from /etc/passwd.
16
17
18 pwconv relies on a special value of 'x' in the password field of
19 /etc/passwd. This value of 'x' indicates that the password for the user
20 is already in /etc/shadow and should not be modified.
21
22
23 If the /etc/shadow file does not exist, this command will create
24 /etc/shadow with information from /etc/passwd. The command populates
25 /etc/shadow with the user's login name, password, and password aging
26 information. If password aging information does not exist in
27 /etc/passwd for a given user, none will be added to /etc/shadow. How‐
28 ever, the last changed information will always be updated.
29
30
31 If the /etc/shadow file does exist, the following tasks will be per‐
32 formed:
33
34
35
36 Entries that are in the /etc/passwd file and not in the
37 /etc/shadow file will be added to the /etc/shadow file.
38
39
40
41
42 Entries that are in the /etc/shadow file and not in the
43 /etc/passwd file will be removed from /etc/shadow.
44
45
46
47
48 Password attributes (for example, password and aging information)
49 that exist in an /etc/passwd entry will be moved to the correspond‐
50 ing entry in /etc/shadow.
51
52
53
54 The pwconv command can only be used by the super-user.
55
57 /etc/opasswd
58
59
60 /etc/oshadow
61
62
63 /etc/passwd
64
65
66 /etc/shadow
67
68
70 See attributes(5) for descriptions of the following attributes:
71
72
73
74
75 ┌─────────────────────────────┬─────────────────────────────┐
76 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
77 ├─────────────────────────────┼─────────────────────────────┤
78 │Availability │SUNWcsu │
79 └─────────────────────────────┴─────────────────────────────┘
80
82 passwd(1), passmgmt(1M), usermod(1M), passwd(4), attributes(5)
83
85 pwconv exits with one of the following values:
86
87 0 SUCCESS.
88
89
90 1 Permission denied.
91
92
93 2 Invalid command syntax.
94
95
96 3 Unexpected failure. Conversion not done.
97
98
99 4 Unexpected failure. Password file(s) missing.
100
101
102 5 Password file(s) busy. Try again later.
103
104
105 6 Bad entry in /etc/shadow file.
106
107
108
109
110SunOS 5.11 9 Mar 1993 pwconv(1M)