2016-12-14 05:19:54 +00:00
|
|
|
# groupadd
|
|
|
|
|
|
|
|
> Add user groups to the system.
|
2022-01-27 21:06:40 +00:00
|
|
|
> See also: `groups`, `groupdel`, `groupmod`.
|
2021-04-17 13:19:41 +01:00
|
|
|
> More information: <https://manned.org/groupadd>.
|
2016-12-14 05:19:54 +00:00
|
|
|
|
2022-01-27 21:06:40 +00:00
|
|
|
- Create a new group:
|
2016-12-14 05:19:54 +00:00
|
|
|
|
2022-01-27 21:06:40 +00:00
|
|
|
`sudo groupadd {{group_name}}`
|
2016-12-14 05:19:54 +00:00
|
|
|
|
2022-01-27 21:06:40 +00:00
|
|
|
- Create a new system group:
|
2016-12-14 05:19:54 +00:00
|
|
|
|
2022-01-27 21:06:40 +00:00
|
|
|
`sudo groupadd --system {{group_name}}`
|
|
|
|
|
|
|
|
- Create a new group with the specific groupid:
|
|
|
|
|
|
|
|
`sudo groupadd --gid {{id}} {{group_name}}`
|