In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the example analysis of the user management / etc/group group file of the Linux system. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
A collection of users with some common characteristics is a user group (Group). The user group (Group) configuration files are mainly / etc/group and / etc/gshadow, where / etc/gshadow is the encrypted information file of / etc/group.
Grouping users is a means to manage users and control access rights in Linux system. Each user belongs to a user group; there can be multiple users in a group, or a user can belong to a different group. When a user is a member of multiple groups at the same time, the primary group to which the user belongs is recorded in the / etc/passwd file, that is, the default group to which the user is logged in, while the other groups are called additional groups.
All the information about the user group is stored in the / etc/group file. The format of this file is separated by a colon (:) with several fields as follows:
Group name: password: group identification number: list of users in the group
Specific explanation:
Group name:
The group name is the name of the user group and consists of letters or numbers. Like the login in / etc/passwd, the group name should not be duplicated.
Password:
The password field stores the encrypted password of the user group. In general, the user group of a Linux system does not have a password, that is, this field is usually blank or *.
Group identification number:
The group identification number, which is similar to the user identification number, is also an integer and is used to identify the group within the system. Otherwise known as GID.
List of users in the group:
Is a list of all users who belong to this group, separated by commas (,). This user group may be the user's primary group or an additional group.
Examples of use:
Output:
[root@localhost test6] # cat / etc/group
Root:x:0:root,linuxsir
Bin:x:1:root,bin,daemon
Daemon:x:2:root,bin,daemon
Sys:x:3:root,bin
On "Linux system user management / etc/group group file example analysis" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
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.