Linux shell script question

Please see attachment LINUX UBUNTU Shell Script Task 1 description: Design and implement the disableuser. Document Preview: 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 : Disables (locks), but does not remove the specified user account => user cannot use disabled account for login disableuser.sh m : Does not disable login (by the operating system), but changes the users login shell to a script that just writes the quoted message to standard output and then exits Example results: whoami -> student1 disableuser.sh m user1 You have been terminated su user1 -> You have been terminated whoami -> student1 Your disableuser.sh script will have to: Generate the special login script that incorporates the quoted message 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 : Removes the user account from the system without removing any of the users files. removeuser.sh z : Disables (locks) the account username Packs all files (not just those in the users home directory) belonging to into single compressed archive named Then, removes the user account rints the script version number and exits removeuser.sh h : prints help content and exits removeuser.sh : Removes the user account from the system without removing any of the users files. removeuser.sh z : Disables (locks) the account username Packs all files (not just those in the users home directory) belonging to into single compressed archive named Then, removes the user account operating system), but changes Attachments: Shell-Script-.doc; Please see attachment LINUX UBUNTU Shell Script Task 1 description: Design and implement the disableuser. Document Preview: 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 : Disables (locks), but does not remove the specified user account => user cannot use disabled account for login disableuser.sh m : Does not disable login (by the operating system), but changes the users login shell to a script that just writes the quoted message to standard output and then exits Example results: whoami -> student1 disableuser.sh m user1 You have been terminated su user1 -> You have been terminated whoami -> student1 Your disableuser.sh script will have to: Generate the special login script that incorporates the quoted message 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 : Removes the user account from the system without removing any of the users files. removeuser.sh z : Disables (locks) the account username Packs all files (not just those in the users home directory) belonging to into single compressed archive named Then, removes the user account rints the script version number and exits removeuser.sh h : prints help content and exits removeuser.sh : Removes the user account from the system without removing any of the users files. removeuser.sh z : Disables (locks) the account username Packs all files (not just those in the users home directory) belonging to into single compressed archive named Then, removes the user account operating system), but changes Attachments: Shell-Script-.doc

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]
CategoriesUncategorized