Exam EX200 All QuestionsBrowse all questions from this exam
Question 20

SIMULATION -

Add admin group and set gid=600 -

    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
RedQuasar

groupadd -g 600 admin

noobmaster96

To check you can use #getent group

Lazylinux

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

Hayder_Alobaidi

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

zizu1

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

ExamNam

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