Este conteúdo não está disponível no idioma selecionado.

3.5.4. Modifying Group Settings


When a group already exists and you need to specify any of the options now, use the groupmod command. The logic of using groupmod is identical to groupadd as well as its syntax:
groupmod option(s) groupnamegroupmod option(s) groupnamegroupmod option(s) groupnamegroupmod option(s) groupname
Copy to Clipboard Toggle word wrap
To change the group ID of a given group, use the groupmod command in the following way:
groupmod -g GID_NEW which_group_to_editgroupmod -g GID_NEW which_group_to_editgroupmod -g GID_NEW which_group_to_editgroupmod -g GID_NEW which_group_to_edit
Copy to Clipboard Toggle word wrap

Note

Find all files owned by the specified GID in system and change their owner. Do the same for Access Control List (ACL) referring to the GID. It is recommended to check there are no running processes as they keep running with the old GID.
To change the name of the group, run the following on the command line. The name of the group will be changed from GROUP_NAME to NEW_GROUP_NAME name.
groupmod -n new_groupname groupnamegroupmod -n new_groupname groupnamegroupmod -n new_groupname groupnamegroupmod -n new_groupname groupname
Copy to Clipboard Toggle word wrap

Example 3.21. Changing a Group's Name

The following command changes the name of the group schoolmates to crowd:
~]# groupmod -n crowd schoolmates
Copy to Clipboard Toggle word wrap
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat