Question
PS: this is in a kali linux Please create a shell script that will perform the following: 1) create a snapshot-in-time by copy files into
PS: this is in a kali linux
Please create a shell script that will perform the following:
1) create a snapshot-in-time by copy files into a safe place within your own scripts directory under your home directory (/home/dougWitten/scripts/logs). The files needed are all from /var/log.
A. syslog
B. auth.log
C. dmesg
D. kern.log
2) perform a comparison from the original files to the saved copies. This can done using the diff command or some other method by means of looking at something that has been altered by user or system. Please disregard any network related messages as we are monitoring for our local NIC traffic.
3) Develop some methodology for notifying the user. This could be done by simply putting some of the erroneous text into a file whereby the sys admin would be flagged if anything looks suspicious.
Notes: This must be done in some kind of looping structure (while or do while loop) so that it is a continuous monitoring process.
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