Write a script for user maintenance
Course:- Operating System
Reference No.:- EM13942994

Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
Assignment Help >> Operating System

You now need to write a script for user maintenance. Write a script that will perform the following tasks:

  • Prompt the system administrator for all valid input parameters
  • Generate a menu to ask which task is needed to be performed
  • Create a UNIX group
  • Drop a UNIX group
  • Create a user
  • Drop a user

Note that as part of the Create User section, a UNIX group many be identified that does not already exist, so that group will need to be created as part of the process.

A third script that you need to write will kill all of the processes associated with a user. The following are the requirements:

  • Prompt the system administrator for the target user name
  • List the running processes for that user
  • Confirm with the system administrator before killing the processes
  • Kill the processes after confirmation

It is very important to note with this task that you should only kill processes for a user and his or her running processes; do not arbitrarily kill running daemons.

  • Include a discussion about the difference between user processes and daemons.
    • What are daemons, and what are they used for?
    • What are the consequences of killing a daemon using this script?

Must be APA formated double spaced with references and be original work

Put your comment

Ask Question & Get Answers from Experts
Browse some more (Operating System) Materials
Assume when a child process is forked, a parent may wait for the successful completion of the child via the wait service so that return result of that application can be read
it has come to our attention that this is not always the case and thus there is a need to forsake this principle and thus waste resources. Why is this situation of wasting r
When a child process is fork()ed, a parent may wait for the successful completion of the child via the wait() service (or one of its variants) so that the return result of t
Explain the difference between internal fragmentation and external fragmentation. Which one occurs in paging system? Which one occurs in system using pure segmentation?
What are the fundamental differences between Windows®, Mac OS®, UNIX, and Linux operating systems for personal computers? What unique characteristics do mainframe operating
Learn the commands that allow you to handle file system security -  UNIX model for file-system security - Argue that the model used by UNIX systems from the 60s is sufficient
Having a Domain Name Server available to the public can be a tool in the hand for attackers. If anyone is able to use your Domain Name Server, they can use it to send a huge a
Case Study - Managing Contention for Shared Resources On Multicore-Processors, Examine the authors' findings. (The authors ran three (3) applications (Soplex, Sphinx, and Nam