Design and implement the disableuser.sh script

Assignment Help Operating System
Reference no: EM13328076

LINUX - UBUNTU Shell Script

Task 1 description: Design and implement the disableuser.sh script.

Required script functionality:

  • disableuser.sh -v : prints the script version number and exits
  • disableuser.sh -h : prints help content and exits
  • disableuser.sh <username> : Disables (locks), but does not remove the specified user account => user cannot use disabled account for login
  • disableuser.sh -m <username> <'message'> : Does not disable login (by the operating system), but changes the user's login shell to a script that just writes the quoted message to standard output and then exits

Example results:

o   whoami -> student1

o   disableuser.sh -m user1 'You have been terminated'

o   su user1 -> 'You have been terminated'

o   whoami -> student1

Your disableuser.sh script will have to:

o   Generate the special login script that incorporates the quoted message

o   Configure user account to use the special login script

 

Task 2 description: Design and implement the removeuser.sh script.

Required script functionality:

  • removeuser.sh -v : prints the script version number and exits
  • removeuser.sh -h : prints help content and exits
  • removeuser.sh <username> : Removes the user account from the system without removing any of the user's files.
  • removeuser.sh -z <username> <archivename> :
    • Disables (locks) the account username
    • Packs all files (not just those in the user's home directory) belonging to <username> into single compressed archive named <archivename>
    • Then, removes the user account

Reference no: EM13328076

Questions Cloud

Design and implement the removeuser.sh script : Packs all files (not just those in the user's home directory) belonging to into single compressed archive named
Generate the special login script : Design and implement the disableuser.sh script. Generate the special login script that incorporates the quoted message.
Identified three potential market opportunities : The manager of a global opportunities for a U .S. manufacturer, who is considering expanding sales into Europe. Your market research has identified three potential market opportunities:
Explain lithium-silver chromate : Heart pacemakers are often powered by lithium-silver chromate "button" batteries. The overall cell reaction is: 2 Li(s) + Ag2CrO4(s) ? Li2CrO4(s) + 2 Ag(s) The overall cell potential is 3.5V. What is the half-cell potential for the follow half rea..
Design and implement the disableuser.sh script : disableuser.sh -m : Does not disable login (by the operating system), but changes the user's login shell to a script that just writes the quoted message to standard output and then exits.
What is the implied expected rate of return for company x : A friend comes to you with the following information on company X. He tells you that the company has price to earnings ratio (P0/E1) of 16 and a dividend payout ratio (D1/E1) of 40%.
The quantity supplied and p is the price per lot of paper. : Qd=160,000-2000P Qs = 40,000+2000P MEC=.0006Qs. Qd is the quantity lots of paper Qs is the quantity supplied and P is the price per lot of paper.
Explain the half-cell potential for the follow half reaction : Heart pacemakers are often powered by lithium-silver chromate "button" batteries. The overall cell reaction is: 2 Li(s) + Ag2CrO4(s) ? Li2CrO4(s) + 2 Ag(s) The overall cell potential is 3.5V. What is the half-cell potential for the follow half rea..
Determine the size of the m1 money mulitplier : What would happen to the money supply if the reserve requirement increased to 14 percent while noncheckable deposits to checkable deposits fell to 35 percent. Assume the other ratios remain as orgiginally stated.

Reviews

Write a Review

Operating System Questions & Answers

  P2p file distribution protocol

In the BitTorrent P2P file distribution protocol, the seed breaks the file into blocks, and the peers redistribute the blocks to each other.

  Define the term context switch

Define the term context switch. Explain how context switching takes place. (use a diagram, with two processes)

  Find total memory bytes stored in the cache

Following, a byte addressable main memory of 2^16 bytes and block size of eight bytes, using direct mapped cache consisting of thirty-two lines.

  Design an improved interactive password system

Design an improved interactive password system? Present your design and describe what kind of attacks your protocol can protect.

  Solving problem by ipv6

Discuss and explain some of the problems NATs develop for IPsec security. Solve this problems through using IPv6?

  Discuss an application that benefits barrier synchronization

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

  What operating system use to edit audio and video clips

Design and edit audio and video clips for school projects. What operating system must library consider for this facility? Explain why?

  Develop a user mode command interpreter

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

  Differences between olap and oltp

Business intelligence systems are sometimes called online analytical processing systems. These online analytical processing systems are used to make decisions and are characterized

  Determine transmission line speed

Imagine you are creating an application at work that transmits data record to another building within the similar city. The data records are 500 bytes in length,

  Compare forensic tools for unix with windows environments

Discuss challenges that handheld devices provide for computer forensics. Compare the forensic tools for UNIX environments (e.g, the Sleuth and TCT) with tools for Windows environments

  Web security threats

Think about the given threats to Web security and explain how each is countered by a particular feature of SSL.

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