Dec 3, 2020 ulysses
Here’s how to add an existing user to a user group in Linux.
usermod -a -G groupname username usermod -a -G www-data john
List all users belonging to a group.
lid -g www-data
List all the groups the user belongs to.
groups john