6.8.6
Which of the following commands removes a user from all secondary group memberships?
usermod -G ""
Using the groupadd -p command overrides the settings found in which file?
/etc/login.defs
You want to see which primary and secondary groups the dredford user belongs to. Enter the command you would use to display group memberships for dredford.
:groups dredford
You are attempting to delete the temp group but are unable to. Which of the following is the MOST likely cause?
The primary group of an existing user cannot be deleted.
You have a group named Research on your system that needs a new password because a member of the group has left the company. Which of the following commands should you use?
gpasswd Research
Which of the following commands creates a new group and defines the group password?
groupadd -p
You are the administrator for a small company, and you need to add a new group of users to the system. The group's name is sales. Which command accomplishes this task?
groupadd sales
You have a group named temp_sales on your system. The group is no longer needed, so you should remove it. Which of the following commands should you use?
groupdel temp_sales
Which of the following commands is used to change the current group ID during a login session?
newgrp
Which of the following commands assigns a user to a primary group?
usermod -g