usermod
Table of Contents
1. Groups
2. Add user to group(s)
Use -aG to append group bar to the list of groups the user is a member of
usermod -aG adm,sudo alan
3. Remove user alan from groups foo and bar
Use gpasswd for feedback
usermod -rG foo,bar alan