change primary group linux code example Example: ubuntu change primary group $ usermod -g pserver pserver