Lesson 7 Quiz Flashcards
The SysVinit is driven by initialization scripts located here.
a) /etc/boot/rc.d
b) /etc/rc.d
c) /boot/rc.d
d) /var/rc.d
b) /etc/rc.d
Runlevels define a grouping for daemons/services. Match the runlevel number to the definition used on CentOS / RHEL. a) 5 b) 3 c) 1 d) 0 Multiuser with Graphics Multiuser but no graphics Single User Mode Poweroff
Multiuser with Graphics a)5
Multiuser but no graphics b)3
Single User Mode c)1
Poweroff d)0
What is the UID (user ID) of the root user?
a) 999
b) 0
c) 10
d) 100
b) 0
You want to check the status of sshd, to see if it is currently running. What command do you use?
a) service sshd status
b) runlevel sshd
c) chkconfig sshd
d) status sshd
a) service sshd status
You type the runlevel command and see the following output
$ runlevel
N 5
What does the output mean? a) N = New Run Level 5 = The New Run Level b) N = New Updates 5 = Update Every 5 seconds c) N = No status available 5 = Repeat command in 5 seconds d) N = No previous runlevel 5 = The current run level
d) N = No previous runlevel
5 = The current run level
Select ALL the ways you can run a command as a root user.
a) Login as root and then run the command as root.
b) Run the command using the su command.
c) Run the command with setuid (set user ID) set to the root user.
d) Run the command using the sudo command. (Assuming the sudoers file has been configured.)
a) Login as root and then run the command as root.
b) Run the command using the su command.
c) Run the command with setuid (set user ID) set to the root user.
d) Run the command using the sudo command. (Assuming the sudoers file has been configured.)
This is the key directory for log files.
a) /ect/messages
b) /etc/log
c) /var/log
d) /var/messages
c) /var/log
You are using a Linux system and you see some documentation that talks about PAM. What is PAM?
a) Pluggable Authentication Module
b) Powerful Admin Mode
c) Powerful Access Mode
d) Pluggable Access Menu
a) Pluggable Authentication Module
Use this command to display messages from the kernel ring buffer.
a) dmesg
b) /var/log/messages
c) runlevel
d) ring-buffer
a) dmesg
On CentOS, RHEL, and Fedora, the graphical configuration tools begin with this.
a) system-config-
b) service-
c) gedit-config-
d) chkconfig-
a) system-config-
Your BASH terminal is “messed up” and displaying strange characters. Enter the EXACT command you can type ot get your BASH screen back to it’s normal state.
reset
Releated to Linux security, select ALL that are TRUE.
a) MAC = Mandatory Access Control
b) Adding SELinux provides MAC.
c) Adding SELinux provides DAC.
d) SELinux is a popular Linux Distro with features simliar to CentOS / RHEL.
a) MAC = Mandatory Access Control
b) Adding SELinux provides MAC.
Suppose you are troubleshooting an issue and you could only look at a single log file. What is the most important log file you could look at?
a) /boot/messsages
b) /etc/log/messages
c) /var/log/messages
d) /var/boot/messages
c) /var/log/messages
Use this command to see if SELinux enabled on your system.
a) sestatus
b) service selinux status
c) chkconfig selinux
d) runlevel selinux
a) sestatus
You want to configure sshd so that it never turns on, regardless of the runlevel. What command do you use?
a) runlevel sshd off
b) chkconfig sshd off
c) service sshd off
d) shutdown sshd
b) chkconfig sshd off