Develop simple scripts to manage the user and file system

Assignment Help Operating System
Reference no: EM132300383

Linux Server Administration Assignment - 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. For this assessment piece, you will utilize the virtual machines created in the previous assessment piece.

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 newusers.txt. The file is in the form

allen student /home/allen Allen John

jeff student /home/jeff Jeff Jackson

brett staff /home/brett Brett Wildermoth

anto staff /home/anto Antonio Buck

and creates these users on the system without any interactive input by run script one time only. 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, group, home directory and GCOS string are separated by a single white space.

The program should output the username, group, home directory, and generated password once created.

2. Management of users is important particularly an account to change the password in every 30 days. Write a shell

(.sh) script that takes a single argument being a username, looks for the account in /etc/passwd, force the accounts above to change their password in every 30 days, and archives their home directory into a systemdate.tar.gz file. The script should also show a summary of the users usage in their home account. You will receive more marks if you avoid using the standard user management tools. systemdate should be yyyy-mm-dd-hhmm at the time of the script run.

Part 2: Practical File Systems

Create a user "assgn2' and in their home directory create the files with the following permissions.

  • A file called "test.txt" , with contents "This is a test file" , include your name and student number as well. Ensure you create the file with read and write permissions for owner, group and other, but no execute permissions.
  • A file called "runme.sh" that runs a simple script of your choosing, with read and execute permissions for group and other, and full read, write and execute permissions for the owner. You can make the script echo something to the user.
  • A hidden file called " .test_config" , owned by root with contents "This is a test config file" , that has root read, write and execute permissions only, no other permissions set.
  • A symbolic link with an absolute path to a system log file of your choosing.
  • A directory called "test_dir" with the owner having full permissions to create, rename or delete files in the directory, list files and enter the directory. Group and other having permissions to only list files and enter the directory and access files within it.

Part 3: Network File System using both Fedora and Ubuntu

In this task, you need set an NFS filesharing storage. Either Fedora or Ubuntu can act as a NFS server or client. The implementation should include installing NFS server and client, /etc/exports file configuration, mounting the shared folder from server to client NFS, and finally, any change to the client mounted folder should be visible on the server's shared folder.

Document the steps taken and clearly show the decisions you made in configuring the NFS service. Include a picture to clearly illustrate the relationship between the server and the client.

Part 4: 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 and files are owned and only accessible by the owner. The script should be run by root only.

2. Finally, write a script which takes as an argument the filesystem name e.g. /home and looks for objects which are larger than 15 MB and objects that are executable, then list all these files in a file called suspicious.txt and this file to be located in /home/user_home_folder/dd-mm-yyyy.suspicious.txt. For instance, for user john would have /home/john/13-01-2019.suspicious.txt

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

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.

Length: 15 - 20 pages including screenshots.

Reference no: EM132300383

Questions Cloud

Segments using sustaining and disruptive innovations : How do Internet Service Providers try to increase sales and profits from these segments using sustaining and disruptive innovations?
For what reason was the examination attempted : For what reason was the examination attempted? What was the examination question, the tried hypothesis or the light for the examination?
Constitutional principles of federalism and checks : Discuss the constitutional principles of federalism and checks and balances providing examples from real life.
How does finance impact your personal life : Utilizing either the company that you work for or a company that you are familiar with, explain why that business needs a financial manager and the various.
Develop simple scripts to manage the user and file system : ITC514 - Linux Server Administration Assignment - File Systems and Advanced Scripting, Charles Sturt University, Australia. Develop scripts to manage user
How strategy shows bezos as systematic and intuitive thinker : Bezos once said: "Amazon may break even or even lose money on the sale of its devices." The company expects to recoup the money later through the sale.
Roofing supervisor position descriptions : What are four skills gaps of roofing supervisors from the Injury and Illness Incident Report and the Roofing Supervisor Position Descriptions?
Considering several options for expanding existing capacity : A company producing custom-made teddy bears is considering several options for expanding their existing capacity.
Data governance and identity theft : CI7300 Data Management and Governance - Kingston University London - Write a formal report outlining your findings and presenting your recommendations

Reviews

len2300383

5/6/2019 11:25:42 PM

Length: 15 - 20 pages including screenshots. Marking criteria and standards - 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.

len2300383

5/6/2019 11:25:37 PM

Part 2: Practical File Systems - Ability to learn and use systems administration techniques. Application of technical knowledge. Explanation, Evidence, and Referencing. Clearly documented solution to tasks, showing a high understanding of file systems in completing all tasks. Reflecting on your learning experience, providing evidence of insight and commenting on the acquisitions of new knowledge drawing from multiple sources.

len2300383

5/6/2019 11:25:28 PM

Part 3: Network File Systems - 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.

len2300383

5/6/2019 11:25:22 PM

Part 4: 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. Presentation - 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.

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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