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

  Assess the likelihood of occurrence for each given risk

Assess the likelihood of occurrence for each risk. Assess the impact of each risk on the success of the project. Identify an owner for each risk. Recommend a strategy to manage each risk.

  Calculate and display the percentage of calories

Once correct data has been entered the program should calculate and display the percentage of calories that come from fat.Use the following formula: percentage of calories from fat=(fat grams x 9) / calories

  Suppose the network is packet-switched virtual circuit

there is a wide area network in which a special route was selected.propagation delay is so small that it could be

  What is meant by tcp show

Read the research literature to learn what is meant by TCP friendly. Also read the Sally Floyd interview at the end of this chapter. Write a explaining of TCP friendliness.

  Write a function template named maximum

Write a function template named maximum. The function takes two values of the same type as its arguments and returns the larger of the two arguments.

  What is a template element of an xslt style sheet

What is a template element of an XSLT style sheet? What two kinds of elements are included in XSLT style sheets? What does the value-of XSLT element do?

  Explain how to implement an array list of n elements

Explain how to implement an array list of n elements so that the methods add and get take O(logn) time in the worst case (with no need for an expandable array).

  Create a network diagram using an appropriate software

Networks have characteristics that make it desirable to implement segmentation and isolation strategies. These same strategies that help to improve.

  Benefit of web-based computing environment

Web-based applications like e-commerce and e-government exemplify the platform shift from the client/server computing to the Web-based computing so for this essay question.

  Write an application that creates 2 variable of type integer

Write an application that creates 2 variable of type integer. Prompt the user to enter two integer values, and assigns each value to one of the variables.

  Create a crossword puzzle you need to identify letters

Create an array of that size called wordArray[]; Read all the words from the file into an array called wordArray[N].

  List the materials of machining cutting tools

List the materials of machining cutting tools. Which is the softest and which is the hardest material? What is the effect of material strength on the tool.

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