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

Assignment Help
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
Discuss how does management in business or education develop and manage Internet usage as it relates to research, supplemental resources and functional support? Explain your a
Make an IE Crow's Foot E-R diagram for the entities section and employee and the 1:N relationship between them. Suppose that a section/department does not require to have an e
Autonomous (intelligent) software agents are used in Artificial Intelligence to solve an increasing number of complex problems and discuss their main applicability as well as
A system with two dual-core processors has four processors available for scheduling. A CPU-intensive application is running on this system. All input is performed at program s
Illustrate how many page faults are generated by following array-initialization loops, using LRU replacement, and assuming page frame 1 has process in it, and the other two
Jan and Kim have decided that they require creating an Intranet. They intend to implement a Web server for internal use. They realize that they require to implement at least o
Discuss the difference between external and internal fragmentation. Which page-replacement strategy incurs more execution overhead: least recent used (LRU) or least frequently
multitasking and one to one relationship between user level threads and kernel level threads which allows one or more threads from a process to issue blocking system calls w