Chapter 2 Flashcards
Which usermod option should you use to add a user to group?
-G
What information is usually provided to the -c option of useradd?
the user’s full name
How many secondary groups can a user be in?
up to 31
How many primary groups can a user be in?
exactly 1
What is Red Hat Enterprise Linux’s default login shell for human users?
/bin/bash
When new users are added with useradd, suppose you want them to each get their own copy of the file named .blog.prefs. Where should you put the master copy?
/etc/skel
Which options to usermod do you use (1) to lock a user out, and (2) to allow them access again?
(1) -L and (2) -U
What’s the problem with changing a user’s userid with usermod?
the user may own some files whose userid is not fixed
What’s wrong with this /etc/passwd line? bob:x:543:music:bob:/home/bob:/bin/bash
music is not an integer
What’s the best reason for using -u with useradd?
making a system user with a specific userid
What’s really wrong with this command? usermod -g wheel -G math,science -c Beverly Wong bev90210
Beverly Wong should be in quotation marks