Difference between revisions of "cmd/usermod"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< cmd
Jump to navigation Jump to search
m (Woozle moved page usermod to cmd/usermod: reorganizing command pages)
(No difference)

Revision as of 22:52, 13 November 2022

Basics

usermod is a command for modifying users on a Linux system.

How To

Assign a user to an additional (non-primary) group:

  • usermod -a -G <groupname> <username>

Note that if you are adding yourself to another group, the new membership will not take effect unless you log in again (even if you open a new terminal session). To do this without logging out of your GUI session, use sudo login <your username> (not sure the last parameter is required).

Related