482 lines
12 KiB
HTML
482 lines
12 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of NEWUSERS</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>NEWUSERS</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>
|
|
|
|
newusers - erstellt oder aktualisiert mehrere neue Benutzer am Stück
|
|
<A NAME="lbAC"> </A>
|
|
<H2>ÜBERSICHT</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>newusers</B> [<I>Optionen</I>] [<I>Datei</I>]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>BESCHREIBUNG</H2>
|
|
|
|
<P>
|
|
|
|
<DD>The
|
|
<B>newusers</B>
|
|
command reads a
|
|
<I>file</I>
|
|
(or the standard input by default) and uses this information to update a set of existing users or to create new users. Each line is in the same format as the standard password file (see
|
|
<B><A HREF="/cgi-bin/man/man2html?5+passwd">passwd</A></B>(5)) with the exceptions explained below:
|
|
<P>
|
|
|
|
pw_Name:pw_Passwort:pw_uid:pw_gid:pw_gecos:pw_Verz:pw_shell
|
|
<P>
|
|
|
|
<I>pw_Name</I>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Dies ist der Name des Benutzers.
|
|
<P>
|
|
It can be the name of a new user or the name of an existing user (or a user created before by
|
|
<B>newusers</B>). In case of an existing user, the user's information will be changed, otherwise a new user will be created.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>pw_Passwort</I>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Dieses Feld wird verschlüsselt und als neuer Wert für das verschlüsselte Passwort verwendet.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>pw_uid</I>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Mit diesem Feld wird die UID des Benutzers bestimmt.
|
|
<P>
|
|
If the field is empty, a new (unused) UID will be defined automatically by
|
|
<B>newusers</B>.
|
|
<P>
|
|
Wenn dieses Feld eine Zahl enthält, wird sie als UID verwendet.
|
|
<P>
|
|
If this field contains the name of an existing user (or the name of a user created before by
|
|
<B>newusers</B>), the UID of the specified user will be used.
|
|
<P>
|
|
Falls die UID eines bestehenden Benutzers verändert wird, muss der Eigentümer der Dateien des Benutzers per Hand angepasst werden.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>pw_gid</I>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Mit diesem Feld wird die ID der Hauptgruppe des Benutzers definiert.
|
|
<P>
|
|
If this field contains the name of an existing group (or a group created before by
|
|
<B>newusers</B>), the GID of this group will be used as the primary group ID for the user.
|
|
<P>
|
|
Wenn dieses Feld eine Zahl enthält, wird sie als ID der Hauptgruppe des Benutzers verwendet. Falls eine Gruppe mit dieser GID nicht existiert, wird eine neue Gruppe mit dieser GID unter dem Namen des Benutzers erstellt.
|
|
<P>
|
|
If this field is empty, a new group will be created with the name of the user and a GID will be automatically defined by
|
|
<B>newusers</B>
|
|
to be used as the primary group ID for the user and as the GID for the new group.
|
|
<P>
|
|
If this field contains the name of a group which does not exist (and was not created before by
|
|
<B>newusers</B>), a new group will be created with the specified name and a GID will be automatically defined by
|
|
<B>newusers</B>
|
|
to be used as the primary group ID for the user and GID for the new group.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>pw_gecos</I>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Dieses Feld wird in das GECOS-Feld des Benutzers kopiert.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>pw_Verz</I>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Mit diesem Feld wird das Home-Verzeichnis des Benutzers definiert.
|
|
<P>
|
|
Wenn in diesem Feld ein Verzeichnis angegeben wird, das nicht vorhanden ist, wird es erstellt. Dieses gehört dem Benutzer, der gerade erstellt und aktualisiert wird, und dessen Hauptgruppe.
|
|
<P>
|
|
If the home directory of an existing user is changed,
|
|
<B>newusers</B>
|
|
does not move or copy the content of the old directory to the new location. This should be done manually.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<I>pw_shell</I>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Mit diesem Feld wird die Shell des Benutzers definiert. Diese Eingabe wird nicht überprüft.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>newusers</B>
|
|
first tries to create or change all the specified users, and then write these changes to the user or group databases. If an error occurs (except in the final writes to the databases), no changes are committed to the databases.
|
|
<P>
|
|
|
|
Im ersten Durchlauf werden Benutzer mit einem gesperrten Passwort erstellt; Passwörter von bereits vorhandenen Benutzern werden in diesem Stadium nicht verändert. Im zweiten Durchlauf werden die Passwörter mit PAM aktualisiert. Sofern dabei ein Fehler auftritt, wird dieser angezeigt, die Aktualisierung der übrigen Passwörter aber fortgesetzt.
|
|
<P>
|
|
|
|
Dieser Befehl ist für den Einsatz in einer Umgebung mit zahlreichen Systemen vorgesehen, in der viele Konten gleichzeitig aktualisiert werden müssen.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONEN</H2>
|
|
|
|
<P>
|
|
|
|
The options which apply to the
|
|
<B>newusers</B>
|
|
command are:
|
|
<P>
|
|
|
|
<B>--badname</B>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Allow names that do not conform to standards.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-h</B>, <B>--help</B>
|
|
<DL COMPACT><DT id="10"><DD>
|
|
zeigt die Hilfe an und beendet das Programm
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-r</B>, <B>--system</B>
|
|
<DL COMPACT><DT id="11"><DD>
|
|
erstellt ein Systemkonto
|
|
<P>
|
|
System users will be created with no aging information in
|
|
/etc/shadow, and their numeric identifiers are chosen in the
|
|
<B>SYS_UID_MIN</B>-<B>SYS_UID_MAX</B>
|
|
range, defined in
|
|
login.defs, instead of
|
|
<B>UID_MIN</B>-<B>UID_MAX</B>
|
|
(and their
|
|
<B>GID</B>
|
|
counterparts for the creation of groups).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-R</B>, <B>--root</B> <I>CHROOT_DIR</I>
|
|
<DL COMPACT><DT id="12"><DD>
|
|
Apply changes in the
|
|
<I>CHROOT_DIR</I>
|
|
directory and use the configuration files from the
|
|
<I>CHROOT_DIR</I>
|
|
directory.
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>WARNUNGEN</H2>
|
|
|
|
<P>
|
|
|
|
Die Eingabedatei muss geschützt werden, da sie unverschlüsselte Passwörter enthält.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>KONFIGURATION</H2>
|
|
|
|
<P>
|
|
|
|
The following configuration variables in
|
|
/etc/login.defs
|
|
change the behavior of this tool:
|
|
<P>
|
|
|
|
<B>GID_MAX</B> (number), <B>GID_MIN</B> (number)
|
|
<DL COMPACT><DT id="13"><DD>
|
|
Range of group IDs used for the creation of regular groups by
|
|
<B>useradd</B>,
|
|
<B>groupadd</B>, or
|
|
<B>newusers</B>.
|
|
<P>
|
|
The default value for
|
|
<B>GID_MIN</B>
|
|
(resp.
|
|
<B>GID_MAX</B>) is 1000 (resp. 60000).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>HOME_MODE</B> (number)
|
|
<DL COMPACT><DT id="14"><DD>
|
|
The mode for new home directories. If not specified, the
|
|
<B>UMASK</B>
|
|
is used to create the mode.
|
|
<P>
|
|
<B>useradd</B>
|
|
and
|
|
<B>newusers</B>
|
|
use this to set the mode of the home directory they create.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>MAX_MEMBERS_PER_GROUP</B> (number)
|
|
<DL COMPACT><DT id="15"><DD>
|
|
Maximum members per group entry. When the maximum is reached, a new group entry (line) is started in
|
|
/etc/group
|
|
(with the same name, same password, and same GID).
|
|
<P>
|
|
Der Standardwert ist 0, was zur Folge hat, dass die Anzahl der Mitglieder einer Gruppe nicht begrenzt ist.
|
|
<P>
|
|
Diese Fähigkeit (der aufgeteilten Gruppe) ermöglicht es, die Zeilenlänge in der Gruppendatei zu begrenzen. Damit kann sichergestellt werden, dass die Zeilen für NIS-Gruppen nicht länger als 1024 Zeichen sind.
|
|
<P>
|
|
Falls Sie eine solche Begrenzung benötigen, können Sie 25 verwenden.
|
|
<P>
|
|
Hinweis: Aufgeteilte Gruppen werden möglicherweise nicht von allen Werkzeugen unterstützt, selbst nicht aus der Shadow-Werkzeugsammlung. Sie sollten diese Variable nur setzen, falls Sie zwingend darauf angewiesen sind.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>PASS_MAX_DAYS</B> (number)
|
|
<DL COMPACT><DT id="16"><DD>
|
|
Die maximale Anzahl von Tagen, für die ein Passwort verwendet werden darf. Wenn das Passwort älter ist, wird ein Wechsel des Passworts erzwungen. Falls nicht angegeben, wird -1 angenommen (was zur Folge hat, dass diese Beschränkung abgeschaltet ist).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>PASS_MIN_DAYS</B> (number)
|
|
<DL COMPACT><DT id="17"><DD>
|
|
Die Mindestanzahl von Tagen, bevor ein Wechsel des Passworts zugelassen wird. Ein vorheriger Versuch, das Passwort zu ändern, wird abgelehnt. Falls nicht angegeben, wird -1 angenommen (was zur Folge hat, dass diese Beschränkung abgeschaltet ist).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>PASS_WARN_AGE</B> (number)
|
|
<DL COMPACT><DT id="18"><DD>
|
|
Die Anzahl von Tagen, an denen der Benutzer vorgewarnt wird, bevor das Passwort verfällt. Eine Null bedeutet, dass eine Warnung nur am Tag des Verfalls ausgegeben wird. Ein negativer Wert bedeutet, dass keine Vorwarnung erfolgt. Falls nicht angegeben, wird keine Vorwarnung ausgegeben.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>SUB_GID_MIN</B> (number), <B>SUB_GID_MAX</B> (number), <B>SUB_GID_COUNT</B> (number)
|
|
<DL COMPACT><DT id="19"><DD>
|
|
If
|
|
/etc/subuid
|
|
exists, the commands
|
|
<B>useradd</B>
|
|
and
|
|
<B>newusers</B>
|
|
(unless the user already have subordinate group IDs) allocate
|
|
<B>SUB_GID_COUNT</B>
|
|
unused group IDs from the range
|
|
<B>SUB_GID_MIN</B>
|
|
to
|
|
<B>SUB_GID_MAX</B>
|
|
for each new user.
|
|
<P>
|
|
The default values for
|
|
<B>SUB_GID_MIN</B>,
|
|
<B>SUB_GID_MAX</B>,
|
|
<B>SUB_GID_COUNT</B>
|
|
are respectively 100000, 600100000 and 65536.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>SUB_UID_MIN</B> (number), <B>SUB_UID_MAX</B> (number), <B>SUB_UID_COUNT</B> (number)
|
|
<DL COMPACT><DT id="20"><DD>
|
|
If
|
|
/etc/subuid
|
|
exists, the commands
|
|
<B>useradd</B>
|
|
and
|
|
<B>newusers</B>
|
|
(unless the user already have subordinate user IDs) allocate
|
|
<B>SUB_UID_COUNT</B>
|
|
unused user IDs from the range
|
|
<B>SUB_UID_MIN</B>
|
|
to
|
|
<B>SUB_UID_MAX</B>
|
|
for each new user.
|
|
<P>
|
|
The default values for
|
|
<B>SUB_UID_MIN</B>,
|
|
<B>SUB_UID_MAX</B>,
|
|
<B>SUB_UID_COUNT</B>
|
|
are respectively 100000, 600100000 and 65536.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>SYS_GID_MAX</B> (number), <B>SYS_GID_MIN</B> (number)
|
|
<DL COMPACT><DT id="21"><DD>
|
|
Range of group IDs used for the creation of system groups by
|
|
<B>useradd</B>,
|
|
<B>groupadd</B>, or
|
|
<B>newusers</B>.
|
|
<P>
|
|
The default value for
|
|
<B>SYS_GID_MIN</B>
|
|
(resp.
|
|
<B>SYS_GID_MAX</B>) is 101 (resp.
|
|
<B>GID_MIN</B>-1).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>SYS_UID_MAX</B> (number), <B>SYS_UID_MIN</B> (number)
|
|
<DL COMPACT><DT id="22"><DD>
|
|
Range of user IDs used for the creation of system users by
|
|
<B>useradd</B>
|
|
or
|
|
<B>newusers</B>.
|
|
<P>
|
|
The default value for
|
|
<B>SYS_UID_MIN</B>
|
|
(resp.
|
|
<B>SYS_UID_MAX</B>) is 101 (resp.
|
|
<B>UID_MIN</B>-1).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>UID_MAX</B> (number), <B>UID_MIN</B> (number)
|
|
<DL COMPACT><DT id="23"><DD>
|
|
Range of user IDs used for the creation of regular users by
|
|
<B>useradd</B>
|
|
or
|
|
<B>newusers</B>.
|
|
<P>
|
|
The default value for
|
|
<B>UID_MIN</B>
|
|
(resp.
|
|
<B>UID_MAX</B>) is 1000 (resp. 60000).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>UMASK</B> (number)
|
|
<DL COMPACT><DT id="24"><DD>
|
|
Die Bit-Gruppe, welche die Rechte von erstellten Dateien bestimmt, wird anfänglich auf diesen Wert gesetzt. Falls nicht angegeben, wird sie auf 022 gesetzt.
|
|
<P>
|
|
<B>useradd</B>
|
|
and
|
|
<B>newusers</B>
|
|
use this mask to set the mode of the home directory they create if
|
|
<B>HOME_MODE</B>
|
|
is not set.
|
|
<P>
|
|
It is also used by
|
|
<B>pam_umask</B>
|
|
as the default umask value.
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>DATEIEN</H2>
|
|
|
|
<P>
|
|
|
|
/etc/passwd
|
|
<DL COMPACT><DT id="25"><DD>
|
|
Informationen zu den Benutzerkonten
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/shadow
|
|
<DL COMPACT><DT id="26"><DD>
|
|
verschlüsselte Informationen zu den Benutzerkonten
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/group
|
|
<DL COMPACT><DT id="27"><DD>
|
|
Informationen zu den Gruppenkonten
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/gshadow
|
|
<DL COMPACT><DT id="28"><DD>
|
|
sichere Informationen zu den Gruppenkonten
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/login.defs
|
|
<DL COMPACT><DT id="29"><DD>
|
|
Konfiguration der Shadow-Passwort-Werkzeugsammlung
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/pam.d/newusers
|
|
<DL COMPACT><DT id="30"><DD>
|
|
PAM configuration for
|
|
<B>newusers</B>.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/subgid
|
|
<DL COMPACT><DT id="31"><DD>
|
|
Per user subordinate group IDs.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
/etc/subuid
|
|
<DL COMPACT><DT id="32"><DD>
|
|
Per user subordinate user IDs.
|
|
</DL>
|
|
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SIEHE AUCH</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+login.defs">login.defs</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+passwd">passwd</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+subgid">subgid</A></B>(5), <B><A HREF="/cgi-bin/man/man2html?5+subuid">subuid</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="33"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="34"><A HREF="#lbAC">ÜBERSICHT</A><DD>
|
|
<DT id="35"><A HREF="#lbAD">BESCHREIBUNG</A><DD>
|
|
<DT id="36"><A HREF="#lbAE">OPTIONEN</A><DD>
|
|
<DT id="37"><A HREF="#lbAF">WARNUNGEN</A><DD>
|
|
<DT id="38"><A HREF="#lbAG">KONFIGURATION</A><DD>
|
|
<DT id="39"><A HREF="#lbAH">DATEIEN</A><DD>
|
|
<DT id="40"><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>
|