mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
usermod: Add -a
and -r
options to append or remove extra groups
This commit is contained in:
parent
caf55c0b2d
commit
b17aa47769
2 changed files with 33 additions and 2 deletions
|
@ -5,7 +5,7 @@ usermod - modify a user account
|
|||
## Synopsis
|
||||
|
||||
```sh
|
||||
$ usermod [--uid uid] [--gid group] [--groups groups] [--lock] [--unlock] [--home new-home] [--move] [--shell path-to-shell] [--gecos general-info] <username>
|
||||
$ usermod [--append] [--uid uid] [--gid group] [--groups groups] [--lock] [--remove] [--unlock] [--home new-home] [--move] [--shell path-to-shell] [--gecos general-info] <username>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
@ -17,10 +17,12 @@ This program must be run as root.
|
|||
|
||||
* `--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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue