shadow/man/chpasswd.8

47 lines
1.5 KiB
Groff
Raw Normal View History

.\" ** You probably do not want to edit this file directly **
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" 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.
.TH "CHPASSWD" "8" "03/02/2006" "System Management Commands" "System Management Commands"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
chpasswd \- update passwords in batch mode
.SH "SYNOPSIS"
.HP 9
\fBchpasswd\fR [\fIoptions\fR]
.SH "DESCRIPTION"
.PP
\fBchpasswd\fR
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:
.PP
\fIuser_name\fR:\fIpassword\fR
.PP
By default the supplied password must be in clear\-text. Default encryption algorithm is DES. Also the password age will be updated, if present.
.PP
This command is intended to be used in a large system environment where many accounts are created at a single time.
.SH "OPTIONS"
.PP
The options which apply to the
\fBchpasswd\fR
command are:
.TP
\fB\-e\fR, \fB\-\-encrypted\fR
Supplied passwords are in encrypted form.
.TP
\fB\-h\fR, \fB\-\-help\fR
Display help message and exit.
.TP
\fB\-m\fR, \fB\-\-md5\fR
Use MD5 encryption instead DES when the supplied passwords are not encrypted.
.SH "CAVEATS"
.PP
Remember to set permissions or umask to prevent readability of unencrypted files by other users.
.SH "SEE ALSO"
.PP
\fBpasswd\fR(1),
\fBnewusers\fR(8),
\fBuseradd\fR(8).