NOTE: This is a little different than what is described

NOTE:  This is a little different than what is described in video.  

Create one script that does two things.  It creates a backup of your directory or performs a security check to be sure the files have not been changed without you knowing. 

Your script must do the following:

1) If the user indicates option 1 on the command line, it performs a backup of your home directory structure.

2) If the user indicates option 2 on the command line,  to does a security check. The script checks if any files in a directory have changed (use sha1sum and diff).  You will need to create a temporary file to hold the new data so you can compare the two. You code should also do the following:

  • Create a maintenance log of who (username) and when (date) the hash checks were completed.  Store the date and name in a file called maintenance.  If the file already exists the code should append to the end.
  • Make sure you check to be sure if you can read the file and you can write to it before doing it. If you can’t print out an error.  
  • The script should print out the name of the file(s) that changed and its old and new hash. 
  • Prove that your code works: 
    • Show maintenance log
    • Show all conditions including error conditions working 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Show all components of your work for partial credit review.

   Show all components of your work for partial credit review. Steven (age 40) and Lori (age 39) Post are married. Lori works as a retail manager and Steven is a self-employed architect (he does not qualify for the QBI Deduction) and does not maintain a home office. Their 2020

Prepare an evidence-based business report (3-5 pages) that explains how

  Prepare an evidence-based business report (3-5 pages) that explains how market conditions should impact a manufacturer’s pricing and marketing decisions. Introduction In this assessment, you will serve as a consultant to a manufacturer struggling to position a product in the marketplace. There are three primary ways that a company

Viking Women – Premium Paper Help

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

‘What is language?’

Student notes for Part 2 This question asks something seemingly simple: ‘What is language?’ The question however is more complicated than it first appears, because it requires you to critically evaluate two very different ways in which this question has been addressed: the way of experimental psychology and the way

To prepare: Before completing your observations, review the Required Media

   To prepare: Before completing your      observations, review the Required Media found in the      Learning Resources of this module and the following videos to form the      basis of your observations. Infant Toddler: Birth to Three Penfield Children. (2015). Play activities for babies | Penfield Children’s Center [Video]. YouTube. https://www.youtube.com/watch?v=PkusKSH-JpQ ECA

Question and Quotation

The response is a mini-essay, a way for us to practice our essay-writing skills. Please refer to the rubric to make sure your response contains all the graded elements. In what ways did the American express verbal irony in “Hills Like White Elephants” when he tells the girl “if you

John Locke and Jean-Jacques Rousseau

For this written essay, you will compare the British philosopher, John Locke, and the French philosopher and essayist Jean-Jacques Rousseau. For purposes of this essay, you will read several of the selections that are now posted on Blackboard as “Locke and Rousseau.” You need to read these two selections: Locke

Topic- Any topic from Human Resource Management Directions- You should

  Topic–  Any topic from Human Resource Management Directions- You should research two peer-reviewed articles. You are to complete two annotated bibliographies. Your AB’s should be a minimum of ¾ page long not including the bibliography. Your submission should be double-spaced, and you should use Times New Roman 12 font.

Make sure you have completed the Riverbend City scenario, Riverbend

  Make sure you have completed the Riverbend City scenario, Riverbend City: HPDP Program Design, and read the Ethical Standards for Human Services Professionals before beginning this discussion. For this discussion, present at least two professional standards and their application in this scenario. Choose the professional standards and describe how

Please turn in your Application Assignment 5 here. You can Nursing Assignment Help

Please turn in your Application Assignment 5 here. You can find a description of the assignment, questions, and a rubric below. Here is a student example Download student example, another example  Download another example and tips included here.  Download tips included here. Remember these are just examples. What: In this assignment, you are aiming to demonstrate the following objectives:

CRIT 502 Exploratory Essay

What Is an Exploratory Essay? The purpose of an exploratory essay is to investigate a topic through critical inquiry and present the research findings to your audience. An exploratory essay can take different forms, depending on its purpose. For example, a literature review in the social sciences is a form

Your New Business -Business Plan Like so many others before

Your New Business -Business Plan Like so many others before you, you have decided to set up yourown business. Having investigated various options, you have concluded thatyour ‘idea’ is viable, it suits you and can be developed to be an interesting enterprise with rewarding financial results. Your project can be

Role of Private Security

Instructions No directly quoted material may be used in this project paper. Resources should be summarized or paraphrased with appropriate in-text and Resource page citations. Project 1: Preparing for a Speech Before a Security Professional Organization Scenario: You are the Corporate Security Director for XYZ and a recognized leader in

Primary Task Response: Within the Discussion Board area, write 1000

  Primary Task Response: Within the Discussion Board area, write 1000 words that respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use examples to reinforce your ideas. For this discussion,  Research

A Comparison of the Legal Systems For this week’s assignment,

  A Comparison of the Legal Systems For this week’s assignment, you will evaluate criminal justice systems via the webpage Guide to International and Foreign Law Research (Links to an external site.). Across the globe, there are various types of law including civil law, Muslim law, common law, customary law, and