usermod

The command that changes an existing user account.

In more detail

usermod -G sets the supplementary groups to exactly the list given, removing others; -aG adds to the list. Other options change the shell, comment, home, lock state and expiry.

Example

usermod -aG ops chen adds ops without removing chen's other groups.

Related terms

Taught in

References

Certification courses