Question
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
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 dont have a password o If an account does not have a password, the program will automatically lock the account and report that the account has been locked 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, users 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. o When adding an account, the user should have to reset their password upon first login into the system. 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 universitys 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. o The file should describe operation of the program including the program options and examples of how to run the script Test plan o This can be either Word, Text or a PDF file. o The plan should describe how you will test the program o 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 requirements Test results o This can be either Word, Text or a PDF file. o 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started