How to add existing user to an existing group www-data ? | How to Add User to Group in Linux | How to Easily Add Users to Groups in Ubuntu | smartupworld

#Open terminal by pressing ctrl + T. Use the following code.

sudo usermod -a -G www-data dante

# check the user called “dante” and it’s group.
id dante
groups dante