» Linux » Examen sur Linux » Examen 202 : Networking Administration » Section 1 » Question 3/20
3.You need to delete the group dataproject. Which two of the following tasks should you do first before deleting the group?

A. Check the /etc/passwd file to make sure no one has this group as his default group.
B. Change the members of the dataproject group to another group besides users.
C. Make sure that members listed in the /etc/group file are given new login names.
D. Verify that no file or directory has this group listed as its owner.


A and C
A and D
B and C
B and D

Explanation: You can delete a group by editing the /etc/group file and removing the relevant line for the group. It’s generally better to use groupdel, though, because groupdel checks to see if the group is any user’s primary group. If it is, groupdel refuses to remove the group; you must change the user’s primary group or delete the user account first. As with deleting users, deleting groups can leave “orphaned” files on the computer. It’s usually best to delete the files or assign them other group ownership using the chown or chgrp commands.

Reference: Roderick W. Smith. Sybex Linux + Study Guide: page 274.

Incorrect Answers
A: It is not necessary to assign new login names to the members listed in the /etc/group file.
C: It is not necessary to assign new login names to the members listed in the /etc/group file.
D: It is only necessary to change the users’ default group if the default group is the dataproject group.

« Question 2 Question 4 »