So to create and manage groups, you would use group add.
So if you ever want to delete groups or modify groups,
group del and group bot is what you are going to use.
Let me show you how to use this.
So I'm using group add support.
The group add command by itself doesn't have a lot of options.
So just use group add followed by the name of the group,
and that should be enough.
All the other options are not really very common.
Now, in order to make a user a member of this group,
I can use user mod.
And there it comes, minus A, uppercase G,
support for user Linda.
What is this minus A, uppercase G?
Well, let's investigate the output of user mod.
So here we have user mod, minus, minus help,
where we can see that minus G is a new list
of supplementary groups.
New list, that means that the old list is overwritten.
And that is why we need minus A in addition,
as you can see, without removing the user from other groups.
So always use them together if you are using user mod,
or just use user add, minus uppercase G,
to make the user a member of the new group.
So how can we find the users that
are a member of the group support?
Well, that is managed in ETC group.
And the best way to figure out is by using
grab support on ETC group.
And there we can see that for the support group,
we have user Linda that is added.
Now, a fun thing is that you only
see this for secondary groups.
Because if you use grab Linda on ETC group,
now we do see group Linda, but we
don't see the user Linda as a member of the group Linda.
And that's because it's primary group and not
a secondary group.