1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 06:04:59 +00:00
serenity/Base/usr/share/man/man8/usermod.md
kleines Filmröllchen afaea38be2 Base: Expand "See Also" sections of many manpages
This commit focuses on the CLI utilities.
2023-07-06 10:03:48 +01:00

38 lines
1.4 KiB
Markdown

## Name
usermod - modify a user account
## Synopsis
```sh
$ usermod [--append] [--uid uid] [--gid group] [--groups groups] [--lock] [--remove] [--unlock] [--home new-home] [--move] [--shell path-to-shell] [--gecos general-info] <username>
```
## Description
This program modifies an existing user account.
This program must be run as root.
## Options
* `--help`: Display help message and exit
* `--version`: Print version
* `-a`, `--append`: Append the supplementary groups specified with the -G option to the user
* `-u uid`, `--uid uid`: The new numerical value of the user's ID
* `-g group`, `--gid group`: The group name or number of the user's new initial login group
* `-G groups`, `--groups groups`: Set the user's supplementary groups. Groups are specified with a comma-separated list. Group names or numbers may be used
* `-L`, `--lock`: Lock password
* `-r`, `--remove`: Remove the supplementary groups specified with the -G option from the user
* `-U`, `--unlock`: Unlock password
* `-d new-home`, `--home new-home`: The user's new login directory
* `-m`, `--move`: Move the content of the user's home directory to the new location
* `-s path-to-shell`, `--shell path-to-shell`: The name of the user's new login shell
* `-n general-info`, `--gecos general-info`: Change the GECOS field of the user
## Arguments
* `username`: Username of the account to modify
## See also
* [`userdel`(8)](help://man/8/userdel)
* [`useradd`(8)](help://man/8/useradd)