Security

Applying security best practices, permissions, and firewalls.

Focuses on securing Linux systems through user management, permission control, firewall configuration, and security auditing.
5 minutes 5 Questions

In the context of CompTIA Linux+, security is a critical domain involving the implementation of defense-in-depth strategies to protect system integrity and data. It begins with **User and Group Management**, where administrators enforce the principle of least privilege using standard file permissio…

Concepts covered: User and Group Management, File Permissions and ACLs, SELinux and AppArmor, SSH Configuration and Security, Firewall Configuration (firewalld, ufw, iptables)

Test mode:
Linux+ - Security Example Questions

Test your knowledge of Security

Question 1

A Linux administrator needs to harden the SSH configuration to ensure consistent session initialization. The security policy specifically prohibits users from executing personal commands found in the '~/.ssh/rc' file during login, forcing reliance solely on the global X11 and system authentication scripts. Which directive in the '/etc/ssh/sshd_config' file must be set to 'no' to enforce this restriction?

Question 2

A Linux administrator identifies that the active AppArmor kernel policy includes loaded profiles for several services that have been uninstalled from the system. To reconcile the security state by scanning for and unloading these obsolete profile definitions, which command utility should be executed?

Question 3

A Linux system administrator is configuring a server to act as a network gateway. The external network interface, `eth0`, receives a dynamic IP address from the ISP via DHCP. To ensure outgoing traffic is properly translated using the current public IP, which `iptables` rule must be added?

More Security questions
143 questions (total)