Question
(linux) Imagine you are setting up users and groups for a new startup company. This company has eight employees: alice bob carl dianne eric frank
(linux) Imagine you are setting up users and groups for a new startup company. This company has eight employees: alice bob carl dianne eric frank george heidi These employees will need to be added with blank passwords but be forced to change their password when they first login (investigate use of the chage command for this). Note you will also need to investigate how to execute adduser non-interactively (i.e, where it doesn't require you to input names, phone numbers, etc). Further, the company has two groups: allemployees and helpdesk. Everyone is part of the allemployees group, but only alice, dianne, and frank are in the helpdesk group. Finally, you will create a new directory /documents and give it the following permissions: for helpdesk: make this group the owner and give it read, write, and execute access for everyone else: set read-only access You must name your users and groups exactly as I have them here -- case is important! Finally, you must write a bash script that performs all these tasks. Submit the bash script. Your instructor will run the bash script when grading, and evaluate based on its effects on their VM. (24 pts) all users present in the system (3 points each) (16 pts) all users are forced to change password at next login (2 points each) (10 pts) allemployees and helpdesk groups exist (5 points each) (20 pts) allemployees and helpdesk are properly populated (10 points each) (5 pts) /documents exists (10 pts) /documents is owned by the helpdesk group (5 pts) proper permissions for /documents have been set (8 pts) successfully use bash loops to automate repetitive tasks (2 pts) successfully use #! in your script
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