FEDVTE - LINUX OPERATING SYSTEM SECURITY 2026/2027 UPDATE
VERIFIED PRACTICE QUESTIONS
Question 1
Which command is used to display the current runlevel of a Linux
system?
A) runlevel
B) init
C) systemctl
D) telinit
Correct Answer: A) runlevel
Rationale: The runlevel command displays the previous and current
runlevels of the system. This is essential for understanding what
services are active and verifying the system's operational state.
Question 2
What is the default port number used by SSH for secure remote
connections?
A) 21
B) 22
C) 23
D) 443
Correct Answer: B) 22
Rationale: SSH operates on TCP port 22 by default. This is a well-known
port assigned by IANA for SSH protocol communications.
,Question 3
Which file contains the encrypted user passwords in a modern Linux
system?
A) /etc/passwd
B) /etc/shadow
C) /etc/secure
D) /etc/pwd.db
Correct Answer: B) /etc/shadow
Rationale: The /etc/shadow file stores encrypted password hashes and
password aging information. It is readable only by the root user to
enhance security.
Question 4
What is the purpose of the SELinux targeted policy?
A) Applies SELinux rules to all processes uniformly
B) Only protects specific network services and processes
C) Disables all SELinux protections
D) Enforces strict MAC on every system object
Correct Answer: B) Only protects specific network services and
processes
Rationale: The targeted policy is the default SELinux policy that confines
only specific daemons and network services while allowing other
processes to run unconfined.
Question 5
Which command is used to change the ownership of a file in Linux?
A) chmod
,B) chown
C) chgrp
D) usermod
Correct Answer: B) chown
Rationale: The chown command changes the owner and optionally the
group ownership of files and directories, which is fundamental for
proper access control.
Question 6
What is the purpose of the /etc/hosts.allow file?
A) Lists DNS servers
B) Defines which hosts can access TCP services
C) Stores hostname mappings
D) Configures network interfaces
Correct Answer: B) Defines which hosts can access TCP services
Rationale: /etc/hosts.allow works with tcpd (TCP wrapper) to define
access control rules, specifying which remote hosts are permitted to
connect to local services.
Question 7
Which tool is used to manage and audit user authentication in Linux?
A) auditd
B) pam
C) systemd
D) syslog
Correct Answer: B) pam
Rationale: Pluggable Authentication Modules (PAM) provide a flexible
, framework for user authentication and session management, allowing
system administrators to configure authentication policies.
Question 8
What is the function of the umask command?
A) Sets default file permissions for newly created files
B) Deletes all hidden files
C) Removes files securely
D) Unmasks system processes
Correct Answer: A) Sets default file permissions for newly created files
Rationale: The umask command defines the default permission mask
for newly created files and directories, controlling the initial permissions
assigned to new objects.
Question 9
Which command displays the current SELinux status and mode?
A) selinux-status
B) sestatus
C) getenforce
D) selinux-config
Correct Answer: B) sestatus
Rationale: The sestatus command provides comprehensive information
about SELinux including the current mode, policy type, and status of key
SELinux components.
VERIFIED PRACTICE QUESTIONS
Question 1
Which command is used to display the current runlevel of a Linux
system?
A) runlevel
B) init
C) systemctl
D) telinit
Correct Answer: A) runlevel
Rationale: The runlevel command displays the previous and current
runlevels of the system. This is essential for understanding what
services are active and verifying the system's operational state.
Question 2
What is the default port number used by SSH for secure remote
connections?
A) 21
B) 22
C) 23
D) 443
Correct Answer: B) 22
Rationale: SSH operates on TCP port 22 by default. This is a well-known
port assigned by IANA for SSH protocol communications.
,Question 3
Which file contains the encrypted user passwords in a modern Linux
system?
A) /etc/passwd
B) /etc/shadow
C) /etc/secure
D) /etc/pwd.db
Correct Answer: B) /etc/shadow
Rationale: The /etc/shadow file stores encrypted password hashes and
password aging information. It is readable only by the root user to
enhance security.
Question 4
What is the purpose of the SELinux targeted policy?
A) Applies SELinux rules to all processes uniformly
B) Only protects specific network services and processes
C) Disables all SELinux protections
D) Enforces strict MAC on every system object
Correct Answer: B) Only protects specific network services and
processes
Rationale: The targeted policy is the default SELinux policy that confines
only specific daemons and network services while allowing other
processes to run unconfined.
Question 5
Which command is used to change the ownership of a file in Linux?
A) chmod
,B) chown
C) chgrp
D) usermod
Correct Answer: B) chown
Rationale: The chown command changes the owner and optionally the
group ownership of files and directories, which is fundamental for
proper access control.
Question 6
What is the purpose of the /etc/hosts.allow file?
A) Lists DNS servers
B) Defines which hosts can access TCP services
C) Stores hostname mappings
D) Configures network interfaces
Correct Answer: B) Defines which hosts can access TCP services
Rationale: /etc/hosts.allow works with tcpd (TCP wrapper) to define
access control rules, specifying which remote hosts are permitted to
connect to local services.
Question 7
Which tool is used to manage and audit user authentication in Linux?
A) auditd
B) pam
C) systemd
D) syslog
Correct Answer: B) pam
Rationale: Pluggable Authentication Modules (PAM) provide a flexible
, framework for user authentication and session management, allowing
system administrators to configure authentication policies.
Question 8
What is the function of the umask command?
A) Sets default file permissions for newly created files
B) Deletes all hidden files
C) Removes files securely
D) Unmasks system processes
Correct Answer: A) Sets default file permissions for newly created files
Rationale: The umask command defines the default permission mask
for newly created files and directories, controlling the initial permissions
assigned to new objects.
Question 9
Which command displays the current SELinux status and mode?
A) selinux-status
B) sestatus
C) getenforce
D) selinux-config
Correct Answer: B) sestatus
Rationale: The sestatus command provides comprehensive information
about SELinux including the current mode, policy type, and status of key
SELinux components.