OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / original / man8 / chpasswd.8
1 .\"$Id: chpasswd.8,v 1.10 2002/03/08 04:39:11 kloczek Exp $
2 .\" Copyright 1991, Julianne Frances Haugh
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
14 .\"    may be used to endorse or promote products derived from this software
15 .\"    without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" SUCH DAMAGE.
28 .TH CHPASSWD 8
29 .SH NAME
30 \fBchpasswd\fR - update password file in batch
31 .SH SYNOPSIS
32 \fBchpasswd\fR [\fB-e\fR]
33 .SH DESCRIPTION
34 \fBchpasswd\fR reads a file of user name and password pairs
35 from standard input and uses this information
36 to update a group of existing users. Without the -e switch, the
37 passwords are expected to be cleartext. With the -e switch, the
38 passwords are expected to be in encrypted form.
39 Each line is of the format
40 .sp 1
41           \fIuser_name\fR:\fIpassword\fR
42 .sp 1
43 The named user must exist.
44 The supplied password will be encrypted as necessary, and the password age
45 updated, if present.
46 .PP
47 This command is intended to be used in a large system environment where
48 many accounts are created at a single time.
49 .SH CAVEATS
50 .\" The \fBmkpasswd\fR command must be executed afterwards to update the
51 .\" DBM password files.
52 The input file must be protected if it contains unencrypted passwords.
53 .\" This command may be discarded in favor of the newusers(8) command.
54 .SH SEE ALSO
55 .\" mkpasswd(8), passwd(1), useradd(1)
56 .BR passwd (1),
57 .BR newusers (8),
58 .BR useradd (8)
59 .SH AUTHOR
60 Julianne Frances Haugh (jockgrrl@ix.netcom.com)