Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Homework Help/Study Tips Expert

File Systems and Advanced Scripting

Task

In this assignment, you will develop simple scripts to manage the user and file system whilst developing some expertise in managing a complex file system.

Part 1: Automated Account Management

You have been asked by your boss to prepare two shell scripts which manage user information:

1. You are to prepare a simple shell script which reads a text file called users.txt. The file is in the form

dfs /home/dfs Daniel Saffioti

and creates these users on the system without any interactive input. To do this you will need to use the adduser(1) and passwd(1) commands. You will need to randomly produce the password and report this to the administrator.

You can assume the fields being username, home directory and GCOS string are separated by a single white space.

You can assume all users are in the same group. The program should output the username and generated password once created.

2. Management of users is important particularly their removal. Write a shell (.sh) script that takes a single argument being a username, looks for the account in /etc/passwd, deletes the accounts, and archives their home directory into a tar.gz file. You will receive more marks if you avoid using the standard user management tools.

Part 2: Designing File Systems

You work for the Information Technology Department in your University and you have been asked to build a server to store user data (home directories).

The volumes can grow without bounds, so it was felt that the ZFS file system should be used for each volume. The operating system itself need not be on a ZFS volume.

All volumes including the operating system should be engineered in such a way to ensure the best data protection is afforded in the event of local disk failure. It is expected that no more than 1 hours worth of data will be lost.

The volumes required are as follows:
- uni0 with mount point /users/ug& quota of 200G.
- uni1 with mount point /users/pg& quota of 200G.
- uni2 with mount point /users/deleted& reservation of 100G.
- uni3 with mount point /users/staff& reservation of 100G.
- uni4 with mount point /users/guest & reservation of 250G.
Given the above your task is as follows define a strategy for how you will ensure the volumes outlined above are provisioned whilst ensuring there data protection. Document this accordingly along with a suitable rationale for your design.

Part 3: Implementing the Filesystem

Given the strategy defined in part two, your job is to implement the storage system.

1. To do this install the latest version of Ubuntu Server on a virtual machine. You will need to ensure the networking is bridged and the root portioning is managed appropriately. You will need to add additional virtual disks to meet the storage needs above.

2. Install the ZFS package and configure it such that pools of storage are created to meet the above requirements including redundancy and backups. To achieve this use the mirroring and snapshot features of ZFS.

Part 4: Making the File System accessible and roboust

The next step is to create another virtual machine (running the same Linux distribution). Your job is to:
1. Mount a NFS exported volume from the server outlined in Part three, on this newly created server.
2. Backup all the data on the ZFS volumes on the server in part three to this new instance. You can either use ZFS or another tool/ technique to do this.

Document the steps taken.

Part 5: File System Management with Scripts

Now that you have a plan for the storage there are a few housekeeping matters to take care of because users tend to be somewhat liberal with their storage.

1. Write a script to make sure that user home directories are owned and only accessible by the owner. The script can assume home directories are descendants of /users.

2. Finally, write a script which takes as an argument the filesystem name e.g. /home and looks for objects which do not belong i.e. end with the extension

a. mp3
b. aac
c. mp4
d. mov
e. avi
f. vid

When these files are found a summary should be produced including where they are and the size. The script should also remove the files.

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M93089254
  • Price:- $140

Guranteed 48 Hours Delivery, In Price:- $140

Have any Question?


Related Questions in Homework Help/Study Tips

Resources the art and science of leadership ch 3 and

Resources: The Art and Science of Leadership, Ch. 3 and Leadership Theories Matrix As a leader, you often need to display or clarify a concept. A matrix is a grid that contains information and offers a visual model of id ...

Question research studies often compare variables

Question: Research studies often compare variables, conditions, times, and/or groups of participants to evaluate relationships between variables or differences between groups or times. For example, if researchers are int ...

Why would classical conditioning help someone in their

Why would Classical conditioning help someone in their daily life functioning? Which form of conditioning is most likely see in a classroom setting?

Assignment 3 diverse workforceimagine that you work for a

Assignment 3: Diverse Workforce Imagine that you work for a company with an age diverse workforce. You have baby boomers working with millennials. Their backgrounds are different, and how they view work is different. Thi ...

Question as the country focuses on the restructuring of the

Question: As the country focuses on the restructuring of the U.S. health care delivery system, nurses will continue to play an important role. It is expected that more and more nursing jobs will become available out in t ...

Question well-written project documentation clarifies

Question: Well-written project documentation clarifies intent, documents decisions and results, and allows project managers to assess project progress (and report it, as necessary, to project stakeholders) at every step ...

Numerical and computer tools - assignment1 given that 1

Numerical and Computer Tools - Assignment 1) Given that 1 inch = 2.54 cm, write a script that converts meters to feet and displays the result. Start the script with: clear, clc, meters = 2) Write a script to calculate an ...

Quesiton the purpose of this assessment is to discuss and

Quesiton: The purpose of this assessment is to discuss and analyze your leadership development based on the Kouzes and Posner (2017) model. This model includes five (5) Practices of exemplary leadership (modelling the wa ...

Question observational and motor learningduring the period

Question: Observational and Motor Learning During the period of early childhood, mastering fine motor skills is a very important process needed for physical and cognitive development. However, for a number of different r ...

Case study - domus developments to build or not to

Case Study - Domus Developments: To Build or Not to Build? Question: 1. Prepare a 24-month cash budget for building North Point, starting in May 2014. (no need to calculate just analysis the result, I have answer paper a ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As