man-pages/de/man8/chpasswd.8.html
2021-03-31 01:06:50 +01:00

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">&nbsp;</A>
<H2>NAME</H2>
chpasswd - aktualisiert Passw&ouml;rter im Batch-Modus
<A NAME="lbAC">&nbsp;</A>
<H2>&Uuml;BERSICHT</H2>
<DL COMPACT>
<DT id="1">
<B>chpasswd</B> [<I>Optionen</I>]
</DL>
<A NAME="lbAD">&nbsp;</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&uuml;r den Einsatz in gro&szlig;en Umgebungen vorgesehen, in der viele Konten gleichzeitig erstellt werden m&uuml;ssen.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONEN</H2>
<P>
The options which apply to the
<B>chpasswd</B>
command are:
<P>
<B>-c</B>, <B>--crypt-method</B>&nbsp;<I>METHOD</I>
<DL COMPACT><DT id="2"><DD>
Definiert die Methode, mit der die Passw&ouml;rter verschl&uuml;sselt werden.
<P>
Die verf&uuml;gbaren Methoden sind DES, MD5, NONE und SHA256 oder SHA512, soweit Ihre libc sie unterst&uuml;tzt.
<P>
Standardm&auml;&szlig;ig verschl&uuml;sselt PAM die Passw&ouml;rter.
</DL>
<P>
<B>-e</B>, <B>--encrypted</B>
<DL COMPACT><DT id="3"><DD>
Passw&ouml;rter werden verschl&uuml;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&uuml;sselung MD5 anstelle von DES, wenn die Passw&ouml;rter unverschl&uuml;sselt angegeben werden
</DL>
<P>
<B>-R</B>, <B>--root</B>&nbsp;<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>&nbsp;<I>ROUNDS</I>
<DL COMPACT><DT id="7"><DD>
Verwendet die angegebene Anzahl von Runden, um die Passw&ouml;rter zu verschl&uuml;sseln.
<P>
Ein Wert von 0 bedeutet, dass das System die Standardanzahl der Runden (5000) f&uuml;r die Verschl&uuml;sselung verwenden wird.
<P>
Der Mindestwert ist 1000, der H&ouml;chstwert 999.999.999.
<P>
Sie k&ouml;nnen diese Option nur mit den Verschl&uuml;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">&nbsp;</A>
<H2>WARNUNGEN</H2>
<P>
Achten Sie darauf, dass die Rechte und Umask korrekt vergeben sind, um zu verhindern, dass andere Benutzer unverschl&uuml;sselte Dateien lesen k&ouml;nnen.
<A NAME="lbAG">&nbsp;</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&uuml;r die Anmeldung eines Benutzers ben&ouml;tigt.
<P>
Falls Sie nichts angeben, wird libc die Standardanzahl der Runden festlegen (5000).
<P>
Die Werte m&uuml;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>
&gt;
<B>SHA_CRYPT_MAX_ROUNDS</B>, the highest value will be used.
<P>
Hinweis: Damit wird lediglich die Erstellung von Gruppenpassw&ouml;rtern beeinflusst. Benutzerpassw&ouml;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">&nbsp;</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&uuml;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">&nbsp;</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">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="13"><A HREF="#lbAB">NAME</A><DD>
<DT id="14"><A HREF="#lbAC">&Uuml;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>