Write a bash script to protect a directory

Assignment Help Computer Engineering
Reference no: EM132193635

Write a bash script to protect a directory. Your script should notify a user of the following:

-New file was created

-Permission changes

-Ownership changes

-File size changes

-Modification date changes

Your script should have two operation modes, protect and check. Use command line flags, -p <directory> and -c <directory> to decide which mode to operate in.

In protect mode, your script should create a file called .protect inside the directory you want to watch.

You will use this file to check for any changes made as listed above. In check mode, your script should report any of the changes listed above.

Reference no: EM132193635

Questions Cloud

Talent-management or employee-development programs : Talent-management or employee-development programs prepare talented individuals to accept positions of greater responsibility and authority in the organization
Write a bash script that takes another bash script file : Write a bash script that takes another bash script file in as a command line argument.
Different preventative or detective measures : Be very specific with at least 5 different preventative or detective measures, including fraud detection methods.
Write a bnf grammar for the language consisting of strings : Write a BNF grammar for the language consisting of strings that have one of more number of letters followed by one of more number of numbers.
Write a bash script to protect a directory : In protect mode, your script should create a file called .protect inside the directory you want to watch.
How important is diversity as goal in university admissions : How important is diversity as a goal in university admissions? If you think that it is important, how should universities go about selecting diverse students?
Write a bash script to ask a user for a password : Write a bash script to ask a user for a password and determine if it matches the following rules: Must be at least 8 characters.
Discuss the effects science had on the enlightenment : Discuss the effects science had on the Enlightenment. Examples. After viewing the short videos and reading from Maddison, on slavery, discuss the following.
Considering updating current production line : A small business company is considering updating the current production line.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Defining planning phases of a project

CMGT 410 Well-written project documentation clarifies intent, documents decisions and results, and allows project managers to assess project progress.

  Write a program for policy iteration problem

Write a program for policy iteration and re-solve Jack's car rental problem with the following changes.

  Create an application that will make the given calculations

Create an application that will make these calculations. This method should accept a number of fat grams as an argument and return the number of calories.

  What is the maximum number of simultaneous calls

What is the maximum number of simultaneous calls a CDMA system with a processing gain of 30 dB, an Eb/No of 13 dB and inter-cell interference factor.

  Solution with equipment list and network topology

Propose a solution with your equipment list and network topology

  Write a shell script that calculates information for content

In this assignment, you will write a shell script that calculates the following information for the contents of a given directory.

  Constructing threat model to explain risk

Construct a simple threat model which explains the risk this represents: attacker(s), vulnerability, attack vector, assets, and likelihood of the occurrence, likely impact, and plausible mitigations.

  State the strengths and weaknesses with the current system

State the strengths and weaknesses with the current system and the upgrades you would like to propose to minimize risks and vulnerabilities.

  Write a function that take as input a vector with quiz grade

Write a function that takes as input a vector with quiz grades and that determnes if the highest grade was obtained on the first quiz.

  Describe the security issues of bcbst

Describe the security issues of BCBST in regard to confidentiality, integrity, availability, and privacy based on the information provided in the BCBST case.

  How are authentication and authorization alike

How are authentication and authorization alike and how are they different? What is the relationship, if any, between the two?

  Developing a graphical user interface in programming

Developing a graphical user interface in programming is paramount to being successful in the business industry

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd