In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "what group refers to in linux". In daily operation, I believe that many people have doubts about what group refers to in linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubt of "what group refers to in linux". Next, please follow the editor to study!
In linux, a group is a logical set of users with the same characteristics, and it is beneficial to organize and manage users according to the characteristics of users; a user belongs to at least one group, and when a user is a member of multiple groups, one group is the main group of the user, and the other groups are the affiliated groups of the user.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is the group in linux 1. Overview
A group is a logical set of users with the same characteristics. Using a group is helpful for system administrators to organize and manage users according to the characteristics of users and improve work efficiency.
When you authorize a resource, you can assign permission to a group, and members of the group can automatically obtain this permission.
A user account belongs to at least one user group, and when it is a member of multiple groups, one group is the main group (private group) of the user, and the other group is the affiliated group (standard group) of the user.
two。 Account file of user group user group profile / etc/group
User group password file / etc/gshadow
3. Group account management create user groups
Groupadd [option] user group name
Options are used to set parameters for user accounts. The main options are shown in the table.
Parameter description-g group ID is used to create a user group with the specified GID number
Example: create a user group named networks with a GID of 1030
Modify the properties of a user group
The command to modify the group:
Groupmod [option] user group name
Parameter word description-ggid changes the GID of the group to gid-ngroup-name and changes the name of the group to name (rename)-o
Force the GID of the group that accepts the change to maintain the user group account for duplicate numbers
Format of the gpasswd command:
Gpasswd [options] [users] [groups]
Parameter description-an adds the user to the group-d removes the user from the group-r cancels the group's password-An assigns an administrator to the group to delete the user group
This command can only be used by root users. Before deleting the specified user group, you must ensure that the user group is not the primary group of any user, otherwise you need to delete the account of the primary group before deleting the user group.
Delete with the groupdel command
Format: groupdel user name
At this point, the study of "what does the group in linux refer to" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.