253 lines
6.2 KiB
HTML
253 lines
6.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of CHPASSWD</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>CHPASSWD</H1>
|
|
Section: Befehle zur Systemverwaltung (8)<BR>Updated: 28.05.2020<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
chpasswd - aktualisiert Passwörter im Batch-Modus
|
|
<A NAME="lbAC"> </A>
|
|
<H2>ÜBERSICHT</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>chpasswd</B> [<I>Optionen</I>]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>BESCHREIBUNG</H2>
|
|
|
|
<P>
|
|
|
|
<DD>The
|
|
<B>chpasswd</B>
|
|
command 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:
|
|
<P>
|
|
|
|
<I>user_name</I>:<I>password</I>
|
|
<P>
|
|
|
|
By default the passwords must be supplied in clear-text, and are encrypted by
|
|
<B>chpasswd</B>. Also the password age will be updated, if present.
|
|
<P>
|
|
|
|
By default, passwords are encrypted by PAM, but (even if not recommended) you can select a different encryption method with the
|
|
<B>-e</B>,
|
|
<B>-m</B>, or
|
|
<B>-c</B>
|
|
options.
|
|
<P>
|
|
|
|
Except when PAM is used to encrypt the passwords,
|
|
<B>chpasswd</B>
|
|
first updates all the passwords in memory, and then commits all the changes to disk if no errors occurred for any user.
|
|
<P>
|
|
|
|
When PAM is used to encrypt the passwords (and update the passwords in the system database) then if a password cannot be updated
|
|
<B>chpasswd</B>
|
|
continues updating the passwords of the next users, and will return an error code on exit.
|
|
<P>
|
|
|
|
Dieser Befehl ist für den Einsatz in großen Umgebungen vorgesehen, in der viele Konten gleichzeitig erstellt werden müssen.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONEN</H2>
|
|
|
|
<P>
|
|
|
|
The options which apply to the
|
|
<B>chpasswd</B>
|
|
command are:
|
|
<P>
|
|
|
|
<B>-c</B>, <B>--crypt-method</B> <I>METHOD</I>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Definiert die Methode, mit der die Passwörter verschlüsselt werden.
|
|
<P>
|
|
Die verfügbaren Methoden sind DES, MD5, NONE und SHA256 oder SHA512, soweit Ihre libc sie unterstützt.
|
|
<P>
|
|
Standardmäßig verschlüsselt PAM die Passwörter.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-e</B>, <B>--encrypted</B>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Passwörter werden verschlüsselt angegeben.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-h</B>, <B>--help</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
zeigt die Hilfe an und beendet das Programm
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-m</B>, <B>--md5</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
werwendet zur Verschlüsselung MD5 anstelle von DES, wenn die Passwörter unverschlüsselt angegeben werden
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-R</B>, <B>--root</B> <I>CHROOT_DIR</I>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Apply changes in the
|
|
<I>CHROOT_DIR</I>
|
|
directory and use the configuration files from the
|
|
<I>CHROOT_DIR</I>
|
|
directory.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-s</B>, <B>--sha-rounds</B> <I>ROUNDS</I>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Verwendet die angegebene Anzahl von Runden, um die Passwörter zu verschlüsseln.
|
|
<P>
|
|
Ein Wert von 0 bedeutet, dass das System die Standardanzahl der Runden (5000) für die Verschlüsselung verwenden wird.
|
|
<P>
|
|
Der Mindestwert ist 1000, der Höchstwert 999.999.999.
|
|
<P>
|
|
Sie können diese Option nur mit den Verschlüsselungsmethoden SHA256 und SHA512 verwenden.
|
|
<P>
|
|
By default, the number of rounds is defined by the
|
|
<B>SHA_CRYPT_MIN_ROUNDS</B>
|
|
and
|
|
<B>SHA_CRYPT_MAX_ROUNDS</B>
|
|
variables in
|
|
/etc/login.defs.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>WARNUNGEN</H2>
|
|
|
|
<P>
|
|
|
|
Achten Sie darauf, dass die Rechte und Umask korrekt vergeben sind, um zu verhindern, dass andere Benutzer unverschlüsselte Dateien lesen können.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>KONFIGURATION</H2>
|
|
|
|
<P>
|
|
|
|
The following configuration variables in
|
|
/etc/login.defs
|
|
change the behavior of this tool:
|
|
<P>
|
|
|
|
<B>SHA_CRYPT_MIN_ROUNDS</B> (number), <B>SHA_CRYPT_MAX_ROUNDS</B> (number)
|
|
<DL COMPACT><DT id="8"><DD>
|
|
When
|
|
<B>ENCRYPT_METHOD</B>
|
|
is set to
|
|
<I>SHA256</I>
|
|
or
|
|
<I>SHA512</I>, this defines the number of SHA rounds used by the encryption algorithm by default (when the number of rounds is not specified on the command line).
|
|
<P>
|
|
Je mehr Runden Sie definieren, umso schwieriger ist es, das Passwort mit sturem Durchprobieren (brute force) zu knacken; umso mehr Rechenleistung wird jedoch auch für die Anmeldung eines Benutzers benötigt.
|
|
<P>
|
|
Falls Sie nichts angeben, wird libc die Standardanzahl der Runden festlegen (5000).
|
|
<P>
|
|
Die Werte müssen zwischen 1000-999.999.999 liegen.
|
|
<P>
|
|
If only one of the
|
|
<B>SHA_CRYPT_MIN_ROUNDS</B>
|
|
or
|
|
<B>SHA_CRYPT_MAX_ROUNDS</B>
|
|
values is set, then this value will be used.
|
|
<P>
|
|
If
|
|
<B>SHA_CRYPT_MIN_ROUNDS</B>
|
|
>
|
|
<B>SHA_CRYPT_MAX_ROUNDS</B>, the highest value will be used.
|
|
<P>
|
|
Hinweis: Damit wird lediglich die Erstellung von Gruppenpasswörtern beeinflusst. Benutzerpasswörter werden dagegen von PAM erstellt, so dass dieser Vorgang in PAM konfiguriert werden muss. Empfehlenswert ist, diese Variable mit der Konfiguration von PAM in Einklang zu bringen.
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>DATEIEN</H2>
|
|
|
|
<P>
|
|
|
|
/etc/passwd
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Informationen zu den Benutzerkonten
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/shadow
|
|
<DL COMPACT><DT id="10"><DD>
|
|
verschlüsselte Informationen zu den Benutzerkonten
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/login.defs
|
|
<DL COMPACT><DT id="11"><DD>
|
|
Konfiguration der Shadow-Passwort-Werkzeugsammlung
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/pam.d/chpasswd
|
|
<DL COMPACT><DT id="12"><DD>
|
|
PAM configuration for
|
|
<B>chpasswd</B>.
|
|
</DL>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SIEHE AUCH</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+passwd">passwd</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+newusers">newusers</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+login.defs">login.defs</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+useradd">useradd</A></B>(8).
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="13"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="14"><A HREF="#lbAC">ÜBERSICHT</A><DD>
|
|
<DT id="15"><A HREF="#lbAD">BESCHREIBUNG</A><DD>
|
|
<DT id="16"><A HREF="#lbAE">OPTIONEN</A><DD>
|
|
<DT id="17"><A HREF="#lbAF">WARNUNGEN</A><DD>
|
|
<DT id="18"><A HREF="#lbAG">KONFIGURATION</A><DD>
|
|
<DT id="19"><A HREF="#lbAH">DATEIEN</A><DD>
|
|
<DT id="20"><A HREF="#lbAI">SIEHE AUCH</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:04:58 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|