2007-10-07 17:17:33 +05:30
. \" Title: chpasswd
. \" Author:
. \" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
2007-10-07 17:17:57 +05:30
. \" Date: 07/30/2006
2007-10-07 17:17:33 +05:30
. \" Manual: System Management Commands
. \" Source: System Management Commands
. \"
2007-10-07 17:17:57 +05:30
.TH "CHPASSWD" "8" "07/30/2006" "System Management Commands" "System Management Commands"
2007-10-07 17:16:52 +05:30
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
2007-10-07 17:16:07 +05:30
chpasswd \- update passwords in batch mode
2007-10-07 17:16:25 +05:30
.SH "SYNOPSIS"
.HP 9
\fB chpasswd\fR [\fI options\fR ]
.SH "DESCRIPTION"
.PP
2007-10-07 17:17:33 +05:30
2007-10-07 17:17:01 +05:30
\fB chpasswd\fR
2007-10-07 17:16:52 +05:30
reads a list of user name and password pairs from standard input and uses this information to update a group of existing users. Each line is of the format:
2007-10-07 17:16:25 +05:30
.PP
2007-10-07 17:17:33 +05:30
2007-10-07 17:17:01 +05:30
\fI user_name\fR :\fI password\fR
2007-10-07 17:16:25 +05:30
.PP
2007-10-07 17:17:11 +05:30
By default the supplied password must be in clear\- text. Default encryption algorithm is DES. Also the password age will be updated, if present.
2007-10-07 17:16:25 +05:30
.PP
2007-10-07 17:16:52 +05:30
This command is intended to be used in a large system environment where many accounts are created at a single time.
2007-10-07 17:16:25 +05:30
.SH "OPTIONS"
.PP
2007-10-07 17:17:01 +05:30
The options which apply to the
\fB chpasswd\fR
2007-10-07 17:16:52 +05:30
command are:
2007-10-07 17:17:33 +05:30
.TP 3 n
2007-10-07 17:16:25 +05:30
\fB \- e\fR , \fB \- \- encrypted\fR
2007-10-07 17:16:52 +05:30
Supplied passwords are in encrypted form.
2007-10-07 17:17:33 +05:30
.TP 3 n
2007-10-07 17:16:25 +05:30
\fB \- h\fR , \fB \- \- help\fR
2007-10-07 17:16:52 +05:30
Display help message and exit.
2007-10-07 17:17:33 +05:30
.TP 3 n
2007-10-07 17:16:25 +05:30
\fB \- m\fR , \fB \- \- md5\fR
2007-10-07 17:17:57 +05:30
Use MD5 encryption instead of DES when the supplied passwords are not encrypted.
2007-10-07 17:16:25 +05:30
.SH "CAVEATS"
.PP
2007-10-07 17:17:22 +05:30
Remember to set permissions or umask to prevent readability of unencrypted files by other users.
2007-10-07 17:16:25 +05:30
.SH "SEE ALSO"
.PP
2007-10-07 17:17:33 +05:30
2007-10-07 17:17:01 +05:30
\fB passwd\fR (1),
\fB newusers\fR (8),
\fB useradd\fR (8).