Lab 9
Lab 9
5. Which protocol is typically used for transmitting logs to a remote log server?
- a) HTTP
- b) SSH
- c) SMTP
- d) UDP
15. Which command adds a rule to audit all write access to `/etc/passwd`?
- a) `auditctl -a always,exit -F path=/etc/passwd -F perm=w`
- b) `auditd -a always,exit -F path=/etc/passwd -F perm=w`
- c) `auditctl -w /etc/passwd -p w`
- d) `auditrules -w /etc/passwd -p w`
25. What command would you use to check the status of ClamAV?
- a) `clamav-status`
- b) `clamav --status`
- c) `systemctl status clamav`
- d) `service clamav status`
Sure, here are the remaining multiple-choice questions to reach a total of 50. I'll continue from
question 36 and include a mix of command-line and theoretical questions related to the topics
covered:
#### 7. Logging
38. Which file is commonly used to configure log rotation?
- a) `/etc/logrotate.conf`
- b) `/var/log/logrotate.conf`
- c) `/etc/rsyslog.conf`
- d) `/etc/audit/auditd.conf`
41. Which tool can be used to scan for open ports on a server?
- a) nmap
- b) netstat
- c) ping
- d) traceroute
48. Which auditd option sets the maximum number of audit log files?
- a) `num_logs`
- b) `max_log_file`
- c) `max_log_files`
- d) `num_log_files`