How to modify user group in linux

WBOY
Release: 2022-01-06 09:51:27
Original
14600 people have browsed it

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 <新群组名称>][群组名称]
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!