3 examples for usermod

{{ score }}
  # Add existing user to existing group
usermod -a -G group_name user_name
        
{{ score }}
  # Cambiar Directorio home a usuario
usermod -d /new/home username
        
{{ score }}
  #To add a user to a group without modifying the users primary group 
sudo usermod -a -G group user