how to add a user to an ubuntu group code example Example: ubuntu add user to group sudo usermod -a -G group username