groupadd

Add user groups to the system. See also: groups, groupdel, groupmod. More information: <https://manned.org/groupadd>.

Install

All systems
curl cmd.cat/groupadd.sh
Debian Debian
apt-get install passwd
Ubuntu
apt-get install passwd
Alpine
apk add shadow
Arch Arch Linux
pacman -S shadow
image/svg+xml Kali Linux
apt-get install passwd
Fedora
dnf install shadow-utils-2
Windows (WSL2)
sudo apt-get update sudo apt-get install passwd
Raspbian
apt-get install passwd
Docker
docker run cmd.cat/groupadd groupadd powered by Commando

Add user groups to the system. See also: groups, groupdel, groupmod. More information: <https://manned.org/groupadd>.

  • Create a new group:
    sudo groupadd group_name
  • Create a new system group:
    sudo groupadd --system group_name
  • Create a new group with the specific groupid:
    sudo groupadd --gid id group_name

© tl;dr; authors and contributors