2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
3 .\" Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH PWCONV 1M "Mar 9, 1993"
9 pwconv \- installs and updates /etc/shadow with information from /etc/passwd
19 The \fBpwconv\fR command creates and updates \fB/etc/shadow\fR with information
20 from \fB/etc/passwd\fR.
23 \fBpwconv\fR relies on a special value of 'x' in the password field of
24 \fB/etc/passwd.\fR This value of 'x' indicates that the password for the user
25 is already in \fB/etc/shadow\fR and should not be modified.
28 If the \fB/etc/shadow\fR file does not exist, this command will create
29 \fB/etc/shadow\fR with information from \fB/etc/passwd\fR. The command
30 populates \fB/etc/shadow\fR with the user's login name, password, and password
31 aging information. If password aging information does not exist in
32 \fB/etc/passwd\fR for a given user, none will be added to \fB/etc/shadow\fR.
33 However, the last changed information will always be updated.
36 If the \fB/etc/shadow\fR file does exist, the following tasks will be
45 Entries that are in the \fB/etc/passwd\fR file and not in the
46 \fB/etc/shadow\fR file will be added to the \fB/etc/shadow\fR file.
56 Entries that are in the \fB/etc/shadow\fR file and not in the
57 \fB/etc/passwd\fR file will be removed from \fB/etc/shadow\fR.
67 Password attributes (for example, password and aging information) that exist
68 in an \fB/etc/passwd\fR entry will be moved to the corresponding entry in
74 The \fBpwconv\fR command can only be used by the super-user.
79 \fB\fB/etc/opasswd\fR\fR
88 \fB\fB/etc/oshadow\fR\fR
97 \fB\fB/etc/passwd\fR\fR
106 \fB\fB/etc/shadow\fR\fR
115 \fBpasswd\fR(1), \fBpassmgmt\fR(1M), \fBusermod\fR(1M), \fBpasswd\fR(4),
120 \fBpwconv\fR exits with one of the following values:
145 Invalid command syntax.
154 Unexpected failure. Conversion not done.
163 Unexpected failure. Password file(s) missing.
172 Password file(s) busy. Try again later.
181 Bad entry in \fB/etc/shadow\fR file.