Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Managing user logon sessions in a Unix server

Part 1: Creating the wDog script

1. Demonstrate understanding of major operating system components and designs.
2. Utilize an operating system to perform computer management tasks and functions.

Work submitted late and within 6 days after the deadline, will be penalized by 10% for each day of delay to a minimum of 40
points (for passing grades). Students will fail the assessment if work is submitted later than six days after the deadline Please note that College regulations regarding academic integrity apply.

1. Create a directory named COURSEWORK in your home directory at the College’s Linux server. The main script and all related files should be stored there.
2. Make sure that you test the proper execution without any error messages and the required functionality of your scripts before submission. User interface has to be simple but intuitive, validating all user inputs and cases, providing meaningful instructions and error messages.
3. Avoid using absolute pathnames, unless specifically required. Your script(s) should run normally in any directory if all relevant files reside there.
4. Your scripts have to be properly formatted (indented) and documented using appropriate comments, to allow for easy code inspection and debugging.
5. The PDF document should include the answers to the questions of part 2, along with a cover page stating your full name, the module code, the module title, and the date of submission.


Context: You administer a Unix server and you want to monitor a user for multiple logon sessions,because users are allowed to have up to two (2) logon sessions.If the monitored user logon sessions are two (2), your script will take some action and send a
warning to that user. If the monitored user logon sessions exceed two (2), your script will send an alert message to the monitored user and an alert email to another user named recipient (that might be an administrator or a manager).


Part 1: Create two scripts to manage this situation. Document the scripts with comments and use the appropriate indentation so that it is convenient for any user to utilize or modify your scripts. Create a script named “wDog”, to act as a “watchdog” software, which should: (LO 2: 40 points)
1. Utilize a menu with 3 options: “1. Monitor user for multiple logons”, “2. Select alert recipient”,“3. Exit Program”.
2. Validate all user input, displaying meaningful error messages for any invalid input.
A. All error messages created by wDog script, should also be stored in a log file named “wDog.log”, followed by a timestamp (current date and time) and a separator line
3. Menu Option 1 should:
Please note that College regulations regarding academic integrity apply Information Technol ogy
A. Request user to submit a username to be monitored against multiple logon sessions,or a null username to cancel.
B. Validate username to be an existing user.
C. If the given monitored username is null, return to the menu.
D. Check the validity of the username (by verifying the user home directory exists, i
E. If the username does not exist in the system display an error message and repeat from step 3A.
F. Check logged users and count how many times the monitored user has logged on.
G. Append a timestamp, the monitored username and the number of active logon sessions of the particular user to the log file
H. If the number of logons equals the limit of two (2) then:
i. Send the monitored user an online message “Warning: You have reached the maximum number of allowed logon sessions. Please do not start more than two concurrent sessions.”
ii. Append a timestamp, the monitored username and the text “Warning sent” to the log file (“wDog.log”).
I. If the number of logons exceeds the limit of two (2) then:
. Append a timestamp, the monitored username and the number of active logon sessions of the particular username to the overlimit file (“over.txt”).
ii. run the script rMail, passing the monitored username and number of logon sessions as arguments.
iii. If the script rMail does not exist in the working directory, the parent script (wDog) should display an error message and terminate.
J. Wait for 2 minutes and repeat from step 3F (the program will run continuously until you interrupt its execution).
4. Menu Option 2 should:


Part 2 (LO 1): Prepare and submit a PDF document with answers to the following questions:
1. Identify 2 instances of operating system storage management tasks in your script(s). In each case, state the command, its location in your script(s), and the storage management activity it performs (e.x. directory creation). (LO1: 10 points)
2. Identify 1 instance of inter-process communication using pipes in any of the scripts. State its location in your script(s) and briefly explain how it works, mentioning the producer and the consumer processes. In case you did not use IPC using pipes in any of your scripts, you may provide an example command line instead. (LO1: 10 points

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close