SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from CentOS 7 shadow-utils-4.6-5.el7.x86_64.rpm

USERMOD

Section: Befehle zur Systemverwaltung (8)
Updated: 09.08.2019
Index 

NAME

usermod - ver:andert ein Benutzerkonto 

:UBERSICHT

usermod [Optionen] ANMELDENAME
 

BESCHREIBUNG

Theusermodcommand modifies the system account files to reflect the changes that are specified on the command line. 

OPTIONEN

The options which apply to theusermodcommand are:

-a, --append

Add the user to the supplementary group(s). Use only with the-Goption.

-c, --comment COMMENT

The new value of the user's password file comment field. It is normally modified using thechfn(1)utility.

-d, --home HOME_DIR

das neue Home-Verzeichnis des Benutzers

If the-moption is given, the contents of the current home directory will be moved to the new home directory, which is created if it does not already exist. If the current home directory does not exist the new home directory will not be created.

-e, --expiredate EXPIRE_DATE

The date on which the user account will be disabled. The date is specified in the formatYYYY-MM-DD.

An emptyEXPIRE_DATEargument will disable the expiration of the account.

This option requires a/etc/shadowfile. A/etc/shadowentry will be created if there were none.

-f, --inactive INACTIVE

Die Anzahl von Tagen, nach denen ein Passwort abgelaufen ist, bis das Konto deaktiviert wird.

Ein Wert von 0 deaktiviert das Konto, sobald das Passwort abl:auft. Ein Wert von -1 schaltet diese Funktion ab.

This option requires a/etc/shadowfile. A/etc/shadowentry will be created if there were none.

-g, --gid GROUP

Der Name oder die Zahl der anf:anglichen Anmeldegruppe eines neuen Benutzers. Der Gruppenname muss existieren.

Jede Datei im Home-Verzeichnis des Benutzers, die der alten Hauptgruppe des Benutzers geh:orte, wird dieser neuen Gruppe geh:oren.

Die Gruppenzugeh:origkeit von Dateien ausserhalb des Home-Verzeichnisses des Benutzers muss per Hand angepasst werden.

The change of the group ownership of files inside of the user's home directory is also not done if the home dir owner uid is different from the current or new user id. This is safety measure for special home directories such as/.

-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]

A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the-goption.

If the user is currently a member of a group which is not listed, the user will be removed from the group. This behaviour can be changed via the-aoption, which appends the user to the current supplementary group list.

-l, --login NEW_LOGIN

The name of the user will be changed fromLOGINtoNEW_LOGIN. Nothing else is changed. In particular, the user's home directory or mail spool should probably be renamed manually to reflect the new login name.

-L, --lock

Lock a user's password. This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this option with-por-U.

Note: if you wish to lock the account (not only access with a password), you should also set theEXPIRE_DATEto1.

-m, --move-home

Move the content of the user's home directory to the new location. If the current home directory does not exist the new home directory will not be created.

This option is only valid in combination with the-d(or--home) option.

usermodwill try to adapt the ownership of the files and to copy the modes, ACL and extended attributes, but manual changes might be needed afterwards.

-o, --non-unique

When used with the-uoption, this option allows to change the user ID to a non-unique value.

-p, --password PASSWORD

The encrypted password, as returned bycrypt(3).

Note:This option is not recommended because the password (or encrypted password) will be visible by users listing the processes.

Sie sollten sicherstellen, dass das Passwort den Passwortrichtlinien des Systems entspricht.

-R, --root CHROOT_DIR

Apply changes in theCHROOT_DIRdirectory and use the configuration files from theCHROOT_DIRdirectory.

-P, --prefix PREFIX_DIR

Apply changes in thePREFIX_DIRdirectory and use the configuration files from thePREFIX_DIRdirectory. This option does not chroot and is intended for preparing a cross-compilation target. Some limitations: NIS and LDAP users/groups are not verified. PAM authentication is using the host files. No SELINUX support.

-s, --shell SHELL

Der Name der neuen Anmelde-Shell des Benutzers. Falls dieses Feld leer gelassen wird, verwendet das System die Standard-Anmelde-Shell.

-u, --uid UID

der neue numerische Wert der UID des Benutzers

This value must be unique, unless the-ooption is used. The value must be non-negative.

F:ur die Mailbox des Benutzers und alle Dateien, die ihm geh:oren und sich in seinem Home-Verzeichnis befinden, wird die ID des Eigent:umers automatisch angepasst.

Der Eigent:umer von Dateien ausserhalb des Home-Verzeichnisses des Benutzers muss per Hand angepasst werden.

The change of the user ownership of files inside of the user's home directory is also not done if the home dir owner uid is different from the current or new user id. This is safety measure for special home directories such as/.

No checks will be performed with regard to theUID_MIN,UID_MAX,SYS_UID_MIN, orSYS_UID_MAXfrom/etc/login.defs.

-U, --unlock

Unlock a user's password. This removes the '!' in front of the encrypted password. You can't use this option with-por-L.

Note: if you wish to unlock the account (not only access with a password), you should also set theEXPIRE_DATE(for example to99999, or to theEXPIREvalue from/etc/default/useradd).

-v, --add-subuids FIRST-LAST

Add a range of subordinate uids to the user's account.

This option may be specified multiple times to add multiple ranges to a users account.

No checks will be performed with regard toSUB_UID_MIN,SUB_UID_MAX, orSUB_UID_COUNTfrom /etc/login.defs.

-V, --del-subuids FIRST-LAST

Remove a range of subordinate uids from the user's account.

This option may be specified multiple times to remove multiple ranges to a users account. When both--del-subuidsand--add-subuidsare specified, the removal of all subordinate uid ranges happens before any subordinate uid range is added.

No checks will be performed with regard toSUB_UID_MIN,SUB_UID_MAX, orSUB_UID_COUNTfrom /etc/login.defs.

-w, --add-subgids FIRST-LAST

Add a range of subordinate gids to the user's account.

This option may be specified multiple times to add multiple ranges to a users account.

No checks will be performed with regard toSUB_GID_MIN,SUB_GID_MAX, orSUB_GID_COUNTfrom /etc/login.defs.

-W, --del-subgids FIRST-LAST

Remove a range of subordinate gids from the user's account.

This option may be specified multiple times to remove multiple ranges to a users account. When both--del-subgidsand--add-subgidsare specified, the removal of all subordinate gid ranges happens before any subordinate gid range is added.

No checks will be performed with regard toSUB_GID_MIN,SUB_GID_MAX, orSUB_GID_COUNTfrom /etc/login.defs.

-Z, --selinux-user SEUSER

der neue SELinux-Benutzer f:ur den Anmeldenamen des Benutzers

A blankSEUSERwill remove the SELinux user mapping for userLOGIN(if any).

 

WARNUNGEN

You must make certain that the named user is not executing any processes when this command is being executed if the user's numerical user ID, the user's name, or the user's home directory is being changed.usermodchecks this on Linux. On other platforms it only uses utmp to check if the user is logged in.

You must change the owner of anycrontabfiles oratjobs manually.

Sie m:ussen alle :Anderung in Bezug auf NIS auf dem NIS-Server vornehmen. 

KONFIGURATION

The following configuration variables in/etc/login.defschange the behavior of this tool:

MAIL_DIR (string)

Das Verzeichnis des Mail-Spools. Diese Angabe wird ben:otigt, um die Mailbox zu bearbeiten, nachdem das entsprechende Benutzerkonto ver:andert oder gel:oscht wurde. Falls nicht angegeben, wird ein Standard verwendet, der beim Kompilieren festgelegt wurde.

MAIL_FILE (string)

Legt den Ort der Mail-Spool-Dateien eines Benutzers relativ zu seinem Home-Verzeichnis fest.

TheMAIL_DIRandMAIL_FILEvariables are used byuseradd,usermod, anduserdelto create, move, or delete the user's mail spool.

IfMAIL_CHECK_ENABis set toyes, they are also used to define theMAILenvironment variable.

MAX_MEMBERS_PER_GROUP (number)

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).

Der Standardwert ist 0, was zur Folge hat, dass die Anzahl der Mitglieder einer Gruppe nicht begrenzt ist.

Diese F:ahigkeit (der aufgeteilten Gruppe) erm:oglicht es, die Zeilenl:ange in der Gruppendatei zu begrenzen. Damit kann sichergestellt werden, dass die Zeilen f:ur NIS-Gruppen nicht l:anger als 1024 Zeichen sind.

Falls Sie eine solche Begrenzung ben:otigen, k:onnen Sie 25 verwenden.

Hinweis: Aufgeteilte Gruppen werden m:oglicherweise nicht von allen Werkzeugen unterst:utzt, selbst nicht aus der Shadow-Werkzeugsammlung. Sie sollten diese Variable nur setzen, falls Sie zwingend darauf angewiesen sind.

SUB_GID_MIN (number), SUB_GID_MAX (number), SUB_GID_COUNT (number)

If/etc/subuidexists, the commandsuseraddandnewusers(unless the user already have subordinate group IDs) allocateSUB_GID_COUNTunused group IDs from the rangeSUB_GID_MINtoSUB_GID_MAXfor each new user.

The default values forSUB_GID_MIN,SUB_GID_MAX,SUB_GID_COUNTare respectively 100000, 600100000 and 65536.

SUB_UID_MIN (number), SUB_UID_MAX (number), SUB_UID_COUNT (number)

If/etc/subuidexists, the commandsuseraddandnewusers(unless the user already have subordinate user IDs) allocateSUB_UID_COUNTunused user IDs from the rangeSUB_UID_MINtoSUB_UID_MAXfor each new user.

The default values forSUB_UID_MIN,SUB_UID_MAX,SUB_UID_COUNTare respectively 100000, 600100000 and 65536.

 

DATEIEN

/etc/group

Informationen zu den Gruppenkonten

/etc/gshadow

sichere Informationen zu den Gruppenkonten

/etc/login.defs

Konfiguration der Shadow-Passwort-Werkzeugsammlung

/etc/passwd

Informationen zu den Benutzerkonten

/etc/shadow

verschl:usselte Informationen zu den Benutzerkonten

/etc/subgid

Per user subordinate group IDs.

/etc/subuid

Per user subordinate user IDs.
 

SIEHE AUCH

chfn(1),chsh(1),passwd(1),crypt(3),gpasswd(8),groupadd(8),groupdel(8),groupmod(8),login.defs(5),subgid(5), subuid(5),useradd(8),userdel(8).


 

Index

NAME
:UBERSICHT
BESCHREIBUNG
OPTIONEN
WARNUNGEN
KONFIGURATION
DATEIEN
SIEHE AUCH

This document was created byman2html,using the manual pages.