Question: UNIX / Linux Administration Assignment 2 - User Management Requirements: Create a script that can be run from the crontab or the command line that
UNIXLinux Administration Assignment User Management 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 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 datetime 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 scripts 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: Scriptprogram o This should be a text file. o The scriptprogram should be well documented o If you need multiple scriptsprograms that is acceptable. HowTo 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
