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

  Html/css

"Validating Your Work" Please respond to the following:  Describe attribute minimization. Explain what would happen if you tried to validate a page containing instances of attribute minimization. Propose a solution to this problem.

  Application development and programming languages

Application Development and Programming Languages,  Programming languages have evolved since the First Generation Languages (1GLs) in the 1940s. The 1GLs were machine languages, which interacted directly with hardware. 2GLs were assembly languages. F..

  Program to perform a search of an employee list

Write a /bash/bin program to perform a search of an employee list.

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  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,

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Create a simple shell

Create a simple shell. Basically your shell should read the line from standard input, parse the line with command and arguments, and operate the command with arguments.

  Write a program that uses the curve class hierarchy

Write a program that uses the curve class hierarchy. The program should define several different objects, output their area, circumference, etc. It should also use the printcurve function.

  Two-level memory cache hierarchy

Explain how you would pipeline the four following pairs of statements.

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Questions on programing problem with the process of analysis

Questions on Programing Problem with the process of analysis and reflection that went on as you developed the project.

  Write a vhdl code for soda vending machine

Write a VHDL code that implements the above soda machine. You have to turn in the following: A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

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