Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ANY HELP WOULD BE APPRECIATED Requirements: Create a script that can be run from the crontab or the command line that helps you administer accounts.

image text in transcribed

ANY HELP WOULD BE APPRECIATED

Requirements: Create a script that can be run from the crontab or the command line that helps you administer accounts. The script should allow accounts to be created, modified and account status to be reported. The script should be able to do the following: Report all the users that don't have a password . If an account does not have a password, the program will automatically lock the account and report that the account has been locked o Report all expired accounts Report the expiration date/time for all accounts Report all accounts that do not expire Unlock or Lock user accounts specified on the command line Add a user account to the system (interactive only - not run from the crontab) . . o Specify the username, home directory, user's full name, password, and expiration date You should be able to specify the usernames to be created on the command line or from a file specified on the command line. The script should either query for the detailed information or read it from the file * When adding an account, the user should have to reset their password upon first login into the system. o Change the expiration date for users specified on the command line * o Do not allow the root account to have an expiration date The script should be able to write the results to a log file specified on the command line . The script(s) should run on your Linux system. You will not be able to run them on the university's servers. You will need to run it as a privileged user. You can use any of the following scripting languages as the main programing language: bash, sh, ksh, perl and python. Deliverables * Script/program o This should be a text file o The script/program should be well documented o If you need multiple scripts/programs- that is acceptable How-To file o This should be a text file The file should describe operation of the program including the program options and examples of how to run the script o * Test plan o o o This can be either Word, Text or a PDF file The plan should describe how you will test the program You will need to test all the items listed in the requirements for the script and how you will prove that the script worked for each of the requir ements . Test results o o This can be either Word, Text or a PDF file This is the proof that the script is working for all the test cases Requirements: Create a script that can be run from the crontab or the command line that helps you administer accounts. The script should allow accounts to be created, modified and account status to be reported. The script should be able to do the following: Report all the users that don't have a password . If an account does not have a password, the program will automatically lock the account and report that the account has been locked o Report all expired accounts Report the expiration date/time for all accounts Report all accounts that do not expire Unlock or Lock user accounts specified on the command line Add a user account to the system (interactive only - not run from the crontab) . . o Specify the username, home directory, user's full name, password, and expiration date You should be able to specify the usernames to be created on the command line or from a file specified on the command line. The script should either query for the detailed information or read it from the file * When adding an account, the user should have to reset their password upon first login into the system. o Change the expiration date for users specified on the command line * o Do not allow the root account to have an expiration date The script should be able to write the results to a log file specified on the command line . The script(s) should run on your Linux system. You will not be able to run them on the university's servers. You will need to run it as a privileged user. You can use any of the following scripting languages as the main programing language: bash, sh, ksh, perl and python. Deliverables * Script/program o This should be a text file o The script/program should be well documented o If you need multiple scripts/programs- that is acceptable How-To file o This should be a text file The file should describe operation of the program including the program options and examples of how to run the script o * Test plan o o o This can be either Word, Text or a PDF file The plan should describe how you will test the program You will need to test all the items listed in the requirements for the script and how you will prove that the script worked for each of the requir ements . Test results o o This can be either Word, Text or a PDF file This is the proof that the script is working for all the test cases

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions