Unix systems administration

Assignment Help Programming Languages
Reference no: EM131634

1. Menu options

The shell script should generate a menu to allow the user to choose each option. After executing options 1­6, the
script is expected to loop back to the Menu to allow further actions.

2. a) List system users

b) List non­system users

For above 2 options, your script should automatically look in the /etc/password file for system users and non­system users.

System users and non­system users are defined in /etc/login.defs file. In general, system users are users with UID less than 1000 and non­system users are users with UID between 1000 and 6000. Following is an example
/etc/login.defs file.

# Min/max values for automatic uid selection in useradd
UID_MIN 1000
UID_MAX 60000
# System accounts
#SYS_UID_MIN 100
#SYS_UID_MAX 999

The output of the a) and b) should include {Total number of users, User Names}.

3. c) Report on non­system user disk usage

The output should contain the following information:
{username, total_no_of_directories, total_number_of_files, total_size }

For this option, the script is expected to traverse through each user home directory specified in password file and report statistics of disk usage of each non­system user.

4. d) [Help Functions] Generate 5 core files randomly in at least 3 normal users directories.
e) Detect and report core files in non­system user directories

f) Remove core files in non­system user directories core files (program memory dumps) are created when a program terminates involuntarily in Unix like systems.

The file name is always 'core'. It is preferred to clean out all of the core files in the system as they are waste of  storage.

For option d), the script needs to generate 5 empty files with file name core randomly in at least 3 non­system users' directories. For this option check the shell command touch. This is a help function for testing option e and f.

In order to get full 1.5 marks, the path of core file generation needs to be randomized.

For option e), the script traverses through non­system users' directories, locates core files and their absolute path.

It needs to generate a report to the console. The report format can be {non­system user name, core file with full absolute path, core file size, core file timestamp}.

For option f), the script removes the core file and write the action into a log.txt file in append mode. The script expects to generate deletion information of the log files and then write deletion information into a log.txt file. The format can be {timestamp of deletion, non­system user name, core file name with full absolute path, core file size, core file timestamp}

5. x) Exit.

The script is expected to quit after user click x.

Reference no: EM131634

Questions Cloud

Sovereign mines investment analysis : Sovereign Mines Investment Analysis
Value drivers and horizon value of constant growth firm : Value Drivers and Horizon Value of Constant Growth Firm
Prepare general journal entries in general journal form : Prepare general journal entries in general journal form
Concepts of computer graphics : Concepts of Computer Graphics and develop a program using OpenGL
Unix systems administration : Unix Systems Administration
Revenue recognition pattern : Explain in basic terms the main concern to be addressed in determining the appropriate revenue recognition pattern.
Two-level memory cache hierarchy : Explain how you would pipeline the four following pairs of statements.
Write a java program in a netbeans project : Write a Java program in a NetBeans project
State the thesis of your essay : State the thesis of your essay

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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