USERMOD-G User Group user name
Forcibly set a user's group
USERMOD-G User Group user name
Change a user to group (s)
Usermod-a-G user Group user name
Add user to a group (s)
Instructions for use with Usermod:
Function Description: Modify user account.
Syntax: Usermod [-lu][-c < remarks >][-d < login directory >][-e < expiration >][-f < buffer days >][-g < group >][-g < group >][-l & lt; account name >][-s <shell>][-u <uid>][user Account]
Additional note: Usermod can be used to modify the user account settings.
Parameters
-c< Notes > Modify the Notes text for the user account.
-D Login Directory > Modify user login directory.
-e< Expiration date > Modify the expiration date of the account.
-f< Buffer days > Modify the number of days after the password expires to close the account.
-g< Group > Modify the group to which the user belongs.
-g< Group > Modify the additional groups to which the user belongs.
-l< Account name > Modify user account name.
-L LOCKS the user password to invalidate the password.
-s<shell> modifies the shell used by the user when they log in.
-u<uid> Modify the User ID.
-U unlocks the password.
Linux Modify user Group method