Home  >  Article  >  Operation and Maintenance  >  How to modify user group in linux

How to modify user group in linux

WBOY
WBOYOriginal
2022-01-06 09:51:2714572browse

In Linux, you can use the groupmod command to modify the user group. This command is used to change the group identification code or name. When the parameter is set to "-n", you can set the user group name to modify the user group. The syntax is "groupmod -n new user group old user group".

How to modify user group in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to modify user groups in Linux

The Linux groupmod command is used to change the group identification code or name.

When you need to change the identification code or name of the group, you can use the groupmod command to complete the work.

Syntax

groupmod [-g <群组识别码> <-o>][-n <新群组名称>][群组名称]

Parameters:

  • -g Set the group ID to be used.

  • -o Reuse the group ID.

  • -n Set the group name to be used.

Example

Modify the group name

How to modify user group in linux

##Related recommendations: "

Linux Video Tutorial

The above is the detailed content of How to modify user group in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn