Module 10 Test Flashcards

1
Q

In which of the following directories can you place files that will be copied to new user directories when new users are created?
a. /etc/rc.d
b. /etc/skel
c. /usr/local/template
d. /usr/local/useradd

A

b. /etc/skel

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

Which of the following commands can be used to set the number of days until user account jsmith with an expired password is disabled?
a. usermod -f 15 jsmith
b. usermod -d 15 jsmith
c. usermod -x 15 jsmith
d. usermod -e 15 jsmith

A

a. usermod -f 15 jsmith

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

Which of the following is a special group that provides its members with the ability to run the su and sudo commands?
a. sudoers
b. adm
c. wheel
d. sys

A

c. wheel

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

Which of the following files stores information about failed logins on a Linux system?
a. /var/log/btmp
b. /var/log/wtmp
c. /var/log/nolo
d. /var/log/failed

A

a. /var/log/btmp

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

Which of the following is the first field of the /etc/passwd file?
a. UID
b. username
c. GECOS
d. GID

A

b. username

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

Which of the following options can be used with the usermod command to change the description of the user account that is stored in the GECOS field?
a. -g
b. -d
c. -c
d. -s

A

c. -c

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

Which of the following commands can be used to set the default printer for all users on a Linux system where printer1 is the name of the printer?
a. lp -d printer1
b. lpoptions -d printer1
c. lpd -d printer1
d. lpq –set-default printer1

A

b. lpoptions -d printer1

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