Prepare two shell scripts which manage user information

Assignment Help Management Information Sys
Reference no: EM132104458

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. The Assignment should be submitted on Turnitin.

Part 1: Automated Account Management

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

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 separate 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.

Management of users is important particularly there removal. Write a shell (.sh) script that takes a single argument being a username, looks fo the account in /etc/passwd, deletes the accounts, and archives there 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). You 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 house keeping matters to take care of because users tend to be somewhat liberal with their storage.

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.

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.

Rationale

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.

Reference no: EM132104458

Questions Cloud

Explain the definition of civility in detail : For this assignment write a five paragraph essay explaining the definition of civility and its importance in education. Be sure to follow the steps below.
Special or different from traditional approaches : Chosen process should be interesting to you, special or different from traditional approaches, and potentially interesting to fellow students.
The employees to work together and build effective brand : Propose at least three (3) methods to encourage the employees to work together and build an effective brand. please provide reference.
How will expansion of sexual harassment laws globally : How will the expansion of sexual harassment laws globally affect company policies and procedures?
Prepare two shell scripts which manage user information : 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).
What top issues do you think deserve the most attention : How would you encourage your companyCEO and other top leaders focus their efforts on creating a healthy organizational culture and strategy?
What are three personal decision-making approaches : What are the three personal decision-making approaches a manager may use? What are the characteristics of each?
Job hunting practices as combination of preparation : Joe describes his job hunting practices as a combination of preparation, personal networking, and focused follow-up.
What you believe will be the biggest challenges : In this assignment, you will create a PowerPoint presentation that outlines what you believe will be the biggest challenges facing organizations.

Reviews

Write a Review

Management Information Sys Questions & Answers

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

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