Add Existing User To A Group
Here’s how to add an existing user to a user group in Linux.
<pre lang="bash">
usermod -a -G groupname username
usermod -a -G www-data john
List all users belonging to a group.
<pre lang="bash">
lid -g www-data
List all the groups the user belongs to.
<pre lang="bash">
groups john