EX200 Exam QuestionsBrowse all questions from this exam

EX200 Exam - Question 20


SIMULATION -

Add admin group and set gid=600 -

Show Answer
Correct Answer:

To add a group named 'admin' with a group ID (gid) of 600, you can use the command 'groupadd -g 600 admin'. This command creates a new group with the specified gid. If you need to verify the group's creation, you can use commands like 'getent group | grep admin' or 'cat /etc/group' to check if the group exists with the correct gid.

Discussion

6 comments
Sign in to comment
RedQuasar
Dec 12, 2020

groupadd -g 600 admin

noobmaster96
Nov 25, 2021

To check you can use #getent group

ExamNam
Feb 5, 2022

also you can use the following to check: cat /etc/group

zizu1
Feb 23, 2022

to create: sudo groupadd -g 600 admin to verify: grep 600 /etc/group

Hayder_Alobaidi
Jul 22, 2022

if the group already exist do this groupmod admin --gid 600

Lazylinux
Jul 4, 2024

groupadd -g 600 admin to verify getent group | grep admin