How to add existent user to an existent group in linux

In order to add an existent user to an existent group in linux follow this process

 

Required data

  • group name = name of the group
  • user name = name of the user

 

Sample data

  • group name = wheel
  • user name = abernal

 

Process

 

1. Execute the next command

[root@sandbox ~]# usermod -a -G wheel abernal