usermod -a -G $group $user

需要重新登录用户才能生效。