Chapter 2 Flashcards

1
Q

Which usermod option should you use to add a user to group?

A

-G

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What information is usually provided to the -c option of useradd?

A

the user’s full name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many secondary groups can a user be in?

A

up to 31

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many primary groups can a user be in?

A

exactly 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Red Hat Enterprise Linux’s default login shell for human users?

A

/bin/bash

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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?

A

/etc/skel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which options to usermod do you use (1) to lock a user out, and (2) to allow them access again?

A

(1) -L and (2) -U

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s the problem with changing a user’s userid with usermod?

A

the user may own some files whose userid is not fixed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What’s wrong with this /etc/passwd line? bob:x:543:music:bob:/home/bob:/bin/bash

A

music is not an integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What’s the best reason for using -u with useradd?

A

making a system user with a specific userid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What’s really wrong with this command? usermod -g wheel -G math,science -c Beverly Wong bev90210

A

Beverly Wong should be in quotation marks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly