Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Shell Scripting  and automated account management

Shell Scripting  and automated account management

#Task 2 Shell Scripting  and automated account management :   (6 Marks)

One of the difficult tasks that Linux administrators face is to manage users or new employees. The difficulty can be to add deletion and change user attributes. In this task, your job is to write a shell script that performs the following tasks:

1.the script must accept first, last or middle names,
2.the script must be able to assign a new user to  a group of student (if the group does not exist, the script must create user group),
3.based on the first name and last name, the script should generate a unique username with a length of 5 characters,
4.the script must check if the username does not exist before adding,  
5.generate a complex password for the new user,
6.based on username scripts generate an email within the csu.edu.au domain,
7.the scripts must be written in a Sentinel loop,

#Task 3: Shell scripting and Privilege escalation                                                                   (3 Marks)

The Root user on Linux is equivalent to the Administrator user on Windows, and allowing users to have root privileges on Linux can be dangerous. Write a shell script to detect if the current user is a root user to minimize threats.

Write an appropriate message to the user in a paragraph long,
for the above point, you need to investigate potential root user threats,
 Ask the user if he/she wants to continue working as a root user, if yes,  
log user activity in /var/log/StudentID.txt  directory with all user attributes and timestamp.

Important Note: 

you have to submit all of the scripts for the above tasks.
sufficient instructions to the user once the script has been executed,  
the script needs the necessary commands, 
the indentation has to be followed.
the script must be in TEXT format NOT screenshots (i.e., image).            

Accessing the templates:

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Blackboard Experts only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Blackboard Experts are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Blackboard Experts is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Blackboard Experts, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.