mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
usermod: Add -G
option to modify supplementary groups
This commit is contained in:
parent
d7fccfc237
commit
caf55c0b2d
2 changed files with 22 additions and 1 deletions
|
@ -5,7 +5,7 @@ usermod - modify a user account
|
|||
## Synopsis
|
||||
|
||||
```sh
|
||||
$ usermod [--uid uid] [--gid group] [--lock] [--unlock] [--home new-home] [--move] [--shell path-to-shell] [--gecos general-info] <username>
|
||||
$ usermod [--uid uid] [--gid group] [--groups groups] [--lock] [--unlock] [--home new-home] [--move] [--shell path-to-shell] [--gecos general-info] <username>
|
||||
```
|
||||
|
||||
## Description
|
||||
|
@ -19,6 +19,7 @@ This program must be run as root.
|
|||
* `--version`: Print version
|
||||
* `-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
|
||||
* `-U`, `--unlock`: Unlock password
|
||||
* `-d new-home`, `--home new-home`: The user's new login directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue