sudo — usermod –G groupname username
(note that there are two -)
This solves the problem of adding a user to a user group. After successfully joining, you need to connect to the server again, and the user has the permission of the group. For example, the sudo group has the permission of sudo. OK, here you can install all kinds of software~