ubuntu change the primary group of a user code example Example: ubuntu change primary group $ usermod -g pserver pserver