Published Book on Amazon
|All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1|
|All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2|
출판된 한글판 도서
|최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)|
|최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)|
Original Book Contents
12.7.3 Managing User Group
In the Raspberry Pi system, user groups are managed in "/etc/group" file. The managed data has the following format.
<GroupName>: x:<GroupID> : <UserID>….
■ Group ID
When a specific user group is defined in the system, a group id number is internally assigned to each user group. In the internal system, this group id is always used when referring to a user group.
The following is to look at the contents of the "/etc/group" file.
pi@raspberrypi ~ $ sudo cat /etc/group
From here, you can see that each user group is numbered after it. For example, if you look at the user group "guser001", you can see that an id of "1004" is assigned. The number "1004" is the group ID internally managed for the group.