Difference between revisions of "cmd/usermod"
< cmd
Jump to navigation
Jump to search
(tidying) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
[[usermod]] is a command for modifying users on a Linux system. | [[usermod]] is a command for modifying users on a Linux system. | ||
* {{l/manpage}} for this system | * {{l/manpage}} for this system | ||
− | == | + | ==How To== |
+ | Assign a user to an additional (non-primary) group: | ||
+ | * <code>usermod -a -G {{arg|groupname}} {{arg|username}}</code> | ||
+ | ==Related== | ||
+ | * [[Linux/groups]]: Linux user/group commands | ||
+ | * {{l/linux/cmd/groups}}: list what groups a user is in | ||
* [[/archive/Red Hat 7]]: 2005 transcription of Red Hat 7 manpage | * [[/archive/Red Hat 7]]: 2005 transcription of Red Hat 7 manpage |
Revision as of 13:06, 6 January 2018
Basics
usermod is a command for modifying users on a Linux system.
- manpage for this system
How To
Assign a user to an additional (non-primary) group:
usermod -a -G <groupname> <username>
Related
- Linux/groups: Linux user/group commands
- groups: list what groups a user is in
- /archive/Red Hat 7: 2005 transcription of Red Hat 7 manpage