Chapter 4 Flashcards
How many fields are on each line of /etc/group?
4
Which option to groupmod changes the name of a group?
-n
Which option to groupmod changes the groupid of a group?
-g
After you change a group’s groupid, what else should you do?
fix the groupid on any files that were in their group with chgrp
Bob is in three groups, chess, scrabble, and bridge. Which command would add him to the baseball group as well?
usermod -a -G baseball bob
usermod -G chess,scrabble,bridge,baseball bob
Ventura is in three groups, drama, poetry, and fencing. Which command would remove him from fencing?
usermod -G drama,poetry ventura
Which command changes the owner group of the file /etc/fstab to group wheel?
chgrp wheel /etc/fstab
A line in /etc/group reads chinatown:x:415:kearny,powell,stockton. Which statement is true?
user powell is a member of group chinatown