Module 10 Live Virtual Machine Labs 1-5 Flashcards
lab 10-1
When you create a user with the useradd command, what is the immediate state of it?
Active
Locked
Inactive
Open
locked
Which command is used to change the user password expiration information?
userpass
useradd
chage
edit
chage
Which value will force immediate password expiration for a user account?
0
1
1000
10
100
0
Which command should you use to add a user to the plabuser group?
groupadd
usermod
chage
useradd
usermod
Which parameter of the groupmod command allows you to change the group name?
-p
-a
-n
-c
-n
lab 10-2
Which command displays the name of the current logged in user?
whoami
user
who
account
whoami
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
List of logged in users
Current run level of the system
Time of the last system boot
To display the list of users logged in to the system, which parameter of the who command should be used?
-u
-a
-b
-x
-u
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
-q
-H
To display the current runlevel of the system, which parameter of the who command should be used?
-x
-b
-r
-u
-a
-r
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
Security
Kernel
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
Modules
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
Global Directives
Which of the following processes are part of the syslog service? [Choose all that apply.]
klogd
rsyslogd
ksyslogd
syslogd
klogd
rsyslogd
Which process is used for logging events from the kernel?
syslogd
rsyslogd
klogd
ksyslogd
klogd
lab 10-4
CUPS gets its directives from its configuration file, which is /etc/cups/__________.
CUPS.conf
cupsd.conf.original
cupsd.conf
Printer.conf
cupsd.conf
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
Read-only for everyone
What is the default port used by the Web Interface?
80
631
8080
433
631
What is the default port used by the Web Interface?
144
477
777
444
444
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
Lpadmin
lab 10-5
Which command will help you determine the services that are running on specific ports?
nbtstat
top
netstat
ps
netstat
Which file should you edit to change the default port for SSH?
/etc/login
/etc/ssh/sshd_config
/etc/hosts
/etc/systemd/logind.conf
/etc/ssh/sshd_config
To determine the recent logins on your system, which command should you use?
ps
top
netstat
last
last
The login data is retrieved from the latest ________ file.
/var/log/log
/var/log/messages
/var/log/wtmp
/var/log/sshd.log
/var/log/wtmp
Which command should you use to find the last login for each individual on a system?
last
netstat
top
lastlog
ps
lastlog