




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. What is the primary purpose of the CIA triad in Linux security? A) To define user roles B) To guide security policies focusing on Confidentiality, Integrity, and Availability C) To configure network interfaces D) To manage file permissions Answer: B Explanation: The CIA triad provides a foundational framework for designing and implementing security policies by emphasizing Confidentiality, Integrity, and Availability in systems, including Linux environments. Question 2. Which of the following is a common vulnerability in Linux systems? A) Buffer overflow B) Open ports with no service listening C) Excessively restrictive permissions D) Use of strong passwords Answer: A
Explanation: Buffer overflow vulnerabilities occur when data exceeds buffer boundaries, potentially allowing arbitrary code execution, making them common security threats in Linux systems. Question 3. How does the principle of least privilege enhance Linux security? A) By granting users full administrative access B) By limiting user permissions to only what is necessary for their tasks C) By disabling security features D) By increasing the number of user accounts Answer: B Explanation: The principle of least privilege minimizes potential attack surface by ensuring users only have permissions necessary for their roles, reducing risk of misuse or exploitation. Question 4. What is an attack surface in Linux security? A) The physical area where the server is located B) The sum of all points where an attacker can try to enter or extract data
A) Owner has read, write, execute; group has read and execute; others have read only B) Owner has read and write; group has read; others have no permissions C) Owner has execute only; group has write only; others have read only D) All users have full permissions Answer: A Explanation: The symbolic permission 'rwxr-xr--' indicates the owner can read, write, execute; group can read and execute; others can only read. Question 7. What is the primary function of the SUID permission bit? A) To restrict execution of a file B) To allow a user to execute a file with the file's owner privileges C) To prevent a file from being deleted D) To set the sticky bit Answer: B
Explanation: The SUID (Set User ID) bit allows a user to execute a file with the permissions of the file owner, often used for privileged programs. Question 8. Which command is used to modify file permissions symbolically? A) chmod B) chown C) chgrp D) ls Answer: A Explanation: The chmod command modifies file permissions, and it can be used with symbolic modes like 'u+r' to add read permission to the user. Question 9. What does the sticky bit (t) do when set on a directory? A) Allows only the owner to delete or rename files within the directory B) Grants execute permission to all users C) Causes files to be hidden
B) chmod C) chown D) getfacl Answer: A Explanation: The setfacl command is used to assign ACL permissions to files and directories. Question 12. Which checksum tool is suitable for verifying file integrity? A) md5sum B) ping C) netstat D) traceroute Answer: A Explanation: md5sum generates MD5 hashes for files, which can be used to verify that files have not been altered. Question 13. What is the main purpose of a firewall in Linux security? A) To monitor system logs B) To filter network traffic based on rules to block or allow traffic
C) To encrypt data D) To manage user permissions Answer: B Explanation: Firewalls control incoming and outgoing network traffic based on configured rules, helping prevent unauthorized access. Question 14. Which tool is commonly used to manage firewall rules in Linux? A) iptables B) ps C) top D) netcat Answer: A Explanation: iptables manages packet filtering rules in Linux, enabling detailed control of network traffic. Question 15. What is a key security best practice when configuring SSH? A) Use password-based authentication only B) Disable root login and use key-based authentication
D) They are less secure than FTP Answer: B Explanation: SCP and SFTP encrypt data, protecting it from eavesdropping, unlike plain FTP, which transmits data in plaintext. Question 18. Which command provides insight into active network connections and listening ports? A) netstat B) useradd C) ls D) chmod Answer: A Explanation: netstat displays network connections, routing tables, and listening ports, useful for network security monitoring. Question 19. What does the command 'ss - tuln' display? A) Active TCP/UDP listening sockets and associated ports B) System processes C) File system permissions D) User login sessions
Answer: A Explanation: The 'ss - tuln' command shows TCP and UDP sockets in listening mode, providing insight into network services. Question 20. Which system parameter is commonly hardened to improve Linux security? A) Kernel parameters in /etc/sysctl.conf B) User passwords only C) DNS configurations D) Hardware BIOS settings Answer: A Explanation: Kernel parameters, set via /etc/sysctl.conf, can be tuned to mitigate vulnerabilities such as IP spoofing, SYN floods, and more. Question 21. What is the purpose of auditd in Linux security? A) To monitor and record security-relevant events B) To manage user permissions C) To replace the firewall D) To update software packages Answer: A
Explanation: Fail2ban scans logs for failed login attempts and dynamically blocks offending IP addresses, preventing brute-force attacks. Question 24. Which tool is used for port scanning and identifying open services? A) Nmap B) netstat C) top D) ssh Answer: A Explanation: Nmap is a network scanner capable of discovering open ports and services on target hosts. Question 25. What is the primary difference between SELinux and AppArmor? A) SELinux provides MAC with a broader policy language; AppArmor uses profiles for individual applications B) SELinux is only for Windows; AppArmor is Linux-specific
C) SELinux manages user permissions; AppArmor manages network access D) They are identical in functionality Answer: A Explanation: SELinux implements Mandatory Access Control with a flexible policy language, while AppArmor uses per-application profiles for confinement. Question 26. Which Linux command is used to disable unnecessary services at startup? A) systemctl disable B) service restart C) chkconfig D) both A and C Answer: D Explanation: Both 'systemctl disable' (systemd systems) and 'chkconfig' (SysVinit systems) are used to disable services from starting automatically.
A) To enhance system performance B) To hide malicious activities and gain unauthorized root access C) To improve network speed D) To scan for malware Answer: B Explanation: Rootkits are malicious tools designed to conceal the presence of malware and maintain unauthorized root access. Question 30. Which of the following best describes the role of a vulnerability scanner? A) To identify security weaknesses in systems and applications B) To provide firewall rules C) To manage user passwords D) To monitor network traffic Answer: A Explanation: Vulnerability scanners probe systems for known weaknesses, helping organizations identify and remediate security issues.
Question 31. What is the primary function of SELinux in Linux security? A) To enforce mandatory access controls B) To manage user passwords C) To configure network interfaces D) To replace firewalls Answer: A Explanation: SELinux enforces MAC policies, restricting how processes interact with files and other system resources. Question 32. What is a common best practice for password policies? A) Use simple, common passwords B) Enforce strong, complex passwords and regular changes C) Share passwords among users D) Disable password aging Answer: B Explanation: Strong, complex passwords and regular updates reduce the risk of credential compromise.
A) To change ownership of files or directories B) To change permissions C) To delete files D) To create new files Answer: A Explanation: chown modifies the owner and group ownership of files and directories. Question 36. Which file contains user account information in Linux? A) /etc/passwd B) /etc/shadow C) /etc/group D) /etc/hosts Answer: A Explanation: /etc/passwd stores user account details such as username, UID, GID, and home directory. Question 37. Why is the '/etc/shadow' file important? A) It stores hashed passwords and account aging info securely B) It contains network configurations
C) It manages permissions for files D) It logs user activity Answer: A Explanation: /etc/shadow stores encrypted password hashes and password aging information, protected from general access. Question 38. Which command is used to lock a user account? A) passwd - l B) usermod - L C) useradd - L D) Both A and B Answer: D Explanation: 'passwd - l' and 'usermod - L' both lock a user account, preventing login. Question 39. What is the primary purpose of implementing RBAC in Linux? A) To assign permissions based on user roles B) To encrypt data C) To manage network interfaces