Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please I want correct and complete code with comment to Main.sh ( operating system) on atom editor Main Script (Main.sh) will check your credentials. If

please I want correct and complete code with comment to Main.sh ( operating system) on atom editor image text in transcribed
Main Script (Main.sh) will check your credentials. If correct, you will call the following subroutines: Display.sh, Network.sh, System.sh, Check.sh, Install.sh, and Search.sh. For more details, consider the following: - STEP1: If the logged-in user is part of the sudoers group, then, the main script will execute scripts, otherwise, it will ask the user to have the super user privileges (not the root user) to execute these scripts. - STEP2: For every invalid attempt, the system will record the name of the user and the time in a log file (invalid_attempts.log). The maximum number of attempts is 3. - STEP3: If the user exceeds the number of maximum attempts, then, your program will call a script to display the message "Unauthorized userl" and the system will reboot after one minute. - STEP4: All unsuccessful attempts will also be recorded in another log file (unsuccessful_attempts.log) that is erased every month on the 25im according to the current month's calendar. Now, to verify that STEP2 is working properly, you must do the following: Create a new user (newuser) and add a password. Try to run the Main.sh under the newuser. Create a new group (osgeeks) Add this group (osgeeks) to the sudoers (/etc/sudoers) Add the newuser to this osgeeks group Try again running the Main.sh under the same user (newuser)

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago