2007-10-07 17:16:52 +05:30
. \" ** You probably do not want to edit this file directly **
2007-10-07 17:17:01 +05:30
. \" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
2007-10-07 17:16:52 +05:30
. \" Instead of manually editing it, you probably should edit the DocBook XML
. \" source for it and then use the DocBook XSL Stylesheets to regenerate it.
2007-10-07 17:17:22 +05:30
.TH "CHPASSWD" "8" "03/02/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: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: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:16:25 +05:30
.TP
\fB \- e\fR , \fB \- \- encrypted\fR
2007-10-07 17:16:52 +05:30
Supplied passwords are in encrypted form.
2007-10-07 17:16:25 +05:30
.TP
\fB \- h\fR , \fB \- \- help\fR
2007-10-07 17:16:52 +05:30
Display help message and exit.
2007-10-07 17:16:25 +05:30
.TP
\fB \- m\fR , \fB \- \- md5\fR
2007-10-07 17:16:52 +05:30
Use MD5 encryption instead 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:01 +05:30
\fB passwd\fR (1),
\fB newusers\fR (8),
\fB useradd\fR (8).