Creating and managing groups in Linux | Hindi

Опубликовано: 11 Февраль 2026
на канале: Compital
688
9

groupadd Command Syntax
The general syntax for the groupadd command is as follows:

groupadd [OPTIONS] GROUPNAME
Copy
Only the root or a user with sudo privileges can create new groups.

When invoked, groupadd creates a new group using the options specified on the command line plus the default values specified in the /etc/login.defs file.

Creating a Group in Linux
To create a new group type groupadd followed by the new group name.

For example, to create a new group named mygroup you would run:

groupadd mygroup
The command adds an entry for the new group to the /etc/group and /etc/gshadow files.

Once the group is created, you can start adding users to the group .