Module 10 Live Virtual Machine Labs 1-5 Flashcards

1
Q

lab 10-1

When you create a user with the useradd command, what is the immediate state of it?

Active
Locked
Inactive
Open

A

locked

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

Which command is used to change the user password expiration information?

userpass
useradd
chage
edit

A

chage

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

Which value will force immediate password expiration for a user account?

0
1
1000
10
100

A

0

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

Which command should you use to add a user to the plabuser group?

groupadd
usermod
chage
useradd

A

usermod

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

Which parameter of the groupmod command allows you to change the group name?

-p
-a
-n
-c

A

-n

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

lab 10-2

Which command displays the name of the current logged in user?

whoami
user
who
account

A

whoami

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

Which of the following information is displayed with the who command? [Choose all that apply.]

List of logged in users
Current run level of the system
Time of the last system boot
Current user name

A

List of logged in users
Current run level of the system
Time of the last system boot

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

To display the list of users logged in to the system, which parameter of the who command should be used?

-u
-a
-b
-x

A

-u

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

To count the number of users logged in to the system, which parameters of the who command should be used? [Choose all that apply.]

-H
-a
-x
-u
-b
-q

A

-q
-H

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

To display the current runlevel of the system, which parameter of the who command should be used?

-x
-b
-r
-u
-a

A

-r

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

lab 10-3

In the /etc/rsyslog.conf file, which of the following are examples of Facility? [Choose all that apply.]

Level
Kernel
Security
Action

A

Security
Kernel

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

Which section of the /etc/rsyslog.conf file contains various configuration directives that are loaded when the module is loaded?

Templates
Output Channels
Modules
Global Directives
Rules

A

Modules

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

Which of the following section in the /etc/rsyslog.conf file contains information that apply to the rsyslogd daemon and start with $?

Output Channels
Modules
Global Directives
Rules
Templates

A

Global Directives

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

Which of the following processes are part of the syslog service? [Choose all that apply.]

klogd
rsyslogd
ksyslogd
syslogd

A

klogd
rsyslogd

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

Which process is used for logging events from the kernel?

syslogd
rsyslogd
klogd
ksyslogd

A

klogd

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

lab 10-4

CUPS gets its directives from its configuration file, which is /etc/cups/__________.

CUPS.conf
cupsd.conf.original
cupsd.conf
Printer.conf

A

cupsd.conf

17
Q

What is the default state of the cupsd.conf file?

Read-only for everyone
Read-only for everyone except root
Writable for everyone
Executable for everyone

A

Read-only for everyone

18
Q

What is the default port used by the Web Interface?

80
631
8080
433

A

631

19
Q

What is the default port used by the Web Interface?

144
477
777
444

A

444

20
Q

To perform administrative tasks using the Web interface, you must use the root account. An alternative is to add the user to the _________ group

Printer
Lpadmin
Root
Admin

A

Lpadmin

21
Q

lab 10-5

Which command will help you determine the services that are running on specific ports?

nbtstat
top
netstat
ps

A

netstat

22
Q

Which file should you edit to change the default port for SSH?

/etc/login
/etc/ssh/sshd_config
/etc/hosts
/etc/systemd/logind.conf

A

/etc/ssh/sshd_config

23
Q

To determine the recent logins on your system, which command should you use?

ps
top
netstat
last

A

last

24
Q

The login data is retrieved from the latest ________ file.

/var/log/log
/var/log/messages
/var/log/wtmp
/var/log/sshd.log

A

/var/log/wtmp

25
Q

Which command should you use to find the last login for each individual on a system?

last
netstat
top
lastlog
ps

A

lastlog