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
You can use "addgroup" and "groupadd" commands to create user groups. The "addgroup" command makes it easy to create user groups. On the other hand, the "groupadd" command can handle relatively detailed processing with very low-level commands, but it is complex to use and is not used for general purposes.
A user group can be created separately, but a user group can be created at the same time as a user account is created. You can use the" adduser" command to do this. For more information, refer to the explanation in [12.4.3 "adduser" Command – Create User].
The "addgroup" command is used to create a new user group. You can specify the attribute value for the user group by using various options, and the attribute value not specified in the option is set to the default value specified by the system.
addgroup [options] group
■ This creates a new user group.
■ User privilege -- Super user.
■ The "addgroup" command adds a new user group to the system according to the settings specified in the Shell option and "/etc/adduser.conf" file.
Display help message and exit.
Create a system user or group.
Group account information.
Secure group account information.
Shadow password suite configuration.
To create a new group "ggroup001", do the following task.
pi@raspberrypi ~ $ sudo addgroup ggroup001
When the operation is complete, check the data in the "/etc/group" file to see the results of the operation.
pi@raspberrypi ~ $ sudo cat /etc/group