There are several ways to add users to a group in Linux.
The following uses the sudo
group as illustration.
-
gpasswd
,usermod
andadduser
can all be used to add a user to a given group. However, it is suggested that you usegpasswd
as it is more portable and …