Answered step by step
Verified Expert Solution
Question
1 Approved Answer
. ii. Audit Automation (10 marks to individual work) You will write a script to automate the server configuration review on the Centos Linux 8
. ii. Audit Automation (10 marks to individual work) You will write a script to automate the server configuration review on the Centos Linux 8 Servers. The inputs to this task are Lab VM DO NOT USE the case study / project VM you are auditing for this task because you might change the configuration Material from bash scripting lab This is a separate activity from sub-part i. You are advised to use a different Centos Linux 8 VM for this sub-part (eg, your lab VM). Please note that strictly speaking, your audit automation script must work by producing the correct audit outcome on all Centos Linux VMs. The output of this task are Separate audit automation script file for each of the bullet points below Your audit automation scripts will be tested and marked during the 2nd lab session of week 42 (week after flex week). Do come prepared with the testing VM loaded with your script files. The script that you are assigned to create depends on your class register number: The remainder of your register # divided by 5 Audit automation script assigned to you is 0 1.1.2 Ensure /tmp is configured 4.1.11 Ensure events that modify user/group information are collected 4.2.1.3 Ensure rsyslog default file permissions are configured 5.5.5 Ensure default user mask is 027 or more restrictive 6.2.8 Ensure users own their home directories . Each automation script should provide 3 pieces of information: What is the script auditing? - Audit title Is there a non-compliance? Yes/No - Non-compliance What is not compliant? - Details #.litsma-p01-01.sh Audit title: There is only one root id Non-Compliance?: Yes Details: See below root:!:0:0::/:/usr/bin/bash jdoe:*:0:1:John Doe:/home/jdoe:/usr/bin/bash Figure 1: Example of script output Tools - You should use bash to create your script. Your script should cater for positive and negative cases. Simply put, it should say that there is a non-compliance when there is indeed one. It should keep silent when there is non. Advice: You are advised not to spend time on fancy menus no additional marks will be awarded. Priority is that the script works and provides accurate results
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started