assign a user a group in ubuntu code example Example: ubuntu add user to group sudo usermod -a -G group username