Develop simple scripts to manage the user and file system

Assignment Help Other Subject
Reference no: EM132098597

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.

Reference no: EM132098597

Questions Cloud

What is the power output of the heater : A 560-W space heater is designed for operation in Germany, where household electric outlets supply 230 V (rms) service. What is the power output of the heater.
Market segmentation divides potential customers : market segmentation divides potential customers into zip code-defined neighborhoods characterized by parameters such as income, household size,
Determine what the efficiency is : For an ideal heat engine operating between thermal reservoirs at Th=1000 degree and Tc=110 degree, the efficiency is? The response must be typed.
What would be the long run result : It doesn't want to rise tax but instead wants to print $100 currency to balance its budget. What would be the long run result?
Develop simple scripts to manage the user and file system : Develop simple scripts to manage the user and file system whilst developing some expertise in managing a complex file system
One consequence of the representativeness heuristic : One consequence of the ‘representativeness heuristic’ is a tendency to make mistakes in judgment due to…
What is m0-m1 and m2 : Why transferring funds from saving account to the checking account will increase M1? in this case what would be happened to M 2 and M3?
Why targeting interest rates and targeting the money supply : Why targeting interest rates and targeting the money supply are equivalent if money demand is stable?
Potential impact on students decision making : reflect on these concepts/theories' potential impact on students' decision making, and how these learnings are being applied and could be applied

Reviews

len2098597

8/29/2018 2:23:15 AM

You should submit your assessment in a single word document which contains all components of your assignment. Use screenshots to provide evidence and details of the work you have done to complement your written answers. You should reference where appropriate using an approve referencing style to support your work.

len2098597

8/29/2018 2:23:03 AM

Part 5: File System Management and Scripts Ability to learn and use systems administration techniques. Application of technical knowledge. Explanation, Evidence and Referencing. Demonstrated working file system management scripts which exceed all functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources. Demonstrated working file system management scripts which meet all functional requirements. Reflect on your own learning experience providing evidence of insight, drawing on multiple sources to develop understanding.

len2098597

8/29/2018 2:22:57 AM

Part 4: Making the file system accessible and robust. Ability to learn and use systems administration techniques. Application of technical knowledge. Explanation, Evidence and Referencing. Demonstrated working file share sharing and backup management which meets basic functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources. Demonstrated working file share sharing and backup management which meets basic functional requirements. Reflect on your own learning experience providing evidence of insight, drawing on multiple sources to develop understanding.

len2098597

8/29/2018 2:22:50 AM

Part 3: Implementation of File System Ability to learn and use systems administration techniques. Application of technical knowledge. Explanation, Evidence and Referencing. Implemented file system which exceeds all functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources. Implemented file system which meets all functional requirements. Reflect on your own learning experience providing evidence of insight, drawing on multiple sources to develop understanding. Implemented file system which partially meets all functional requirements. Consider and reflect on your own experience, drawing on multiple sources to develop understanding. Implemented file system which meets basic functional requirements. Consider and reflect on your own experience. Major errors and omissions. Limited detail and understanding demonstrated.

len2098597

8/29/2018 2:22:43 AM

Part 2: Design of File System Ability to learn and use systems administration techniques. Application of technical knowledge. Explanation, Evidence and Referencing. Documented file system design which exceeds all functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources. Documented file system design which meets all functional requirements. Reflect on your own learning experience providing evidence of insight, drawing on multiple sources to develop understanding. Documented file system design which partially meets all functional requirements. Consider and reflect on your own experience, drawing on multiple sources to develop understanding. Documented file system design which meets basic functional requirements. Consider and reflect on your own experience. Major errors and omissions. Limited detail and understanding demonstrated.

len2098597

8/29/2018 2:22:37 AM

Question Criteria HD DI CR PS FL Part 1: Automated Account Management Ability to learn and use systems administration techniques. Application of technical knowledge. Explanation, Evidence and Referencing. Demonstrated working automated account management script which exceeds all functional requirements. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources. Demonstrated working automated account management script which meets all functional requirements. Reflect on your own learning experience providing evidence of insight, drawing on multiple sources to develop understanding. Demonstrated working automated account management script which partially meets functional requirements. Consider and reflect on your own experience, drawing on multiple sources to develop understanding. Demonstrated working automated account management script which meets basic functional requirements. Consider and reflect on your own experience. Major errors and omissions. Limited detail and understanding demonstrated.

len2098597

8/29/2018 2:22:30 AM

This assessment task will assess the following learning outcome/s: • be able to apply technical knowledge to manage servers. • be able to investigate the layout of server file systems. • be able to plan, create and manage information services. • be able to design and write scripts to automate various server management tasks. • be able to justify an appropriate protection strategy for data and services. 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.

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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