Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) First thing you will need to do is setup three groups on your system: sysadmin, normal, hr 2) Now, create two separate folders: /etc/admin,

image text in transcribed
image text in transcribed
image text in transcribed
1) First thing you will need to do is setup three groups on your system: sysadmin, normal, hr 2) Now, create two separate folders: /etc/admin, /etc/hr 3) And lastly, set the permissions as follows: a. For /etc/admin, the permissions should be---IrwxI--- b. For /etc/hr, the permissions should be c. Set the group owner for /etc/admin as sysadmin and/etc/hr as hr Update /etc/skel to include the following: /etc/skel: . Documents Backup Finally, create a file named USERS . csv that lists 15 users in the following format (CSV)-including the header (don't include the header in the file, it is not necessary-it should only list the users in that file!) Make sure that the usernames are unique! There should be 5 users in each group (hr, sysadmin, normal): Username, First Name, Last Name, Group erikfredericks, Erik, Fredericks, sysadmin useri, User, Name, hr Now, create a Bash script (named _Lab3_UserAdd.sh) that 1) 2) 3) Reads in the CSV file Adds each user to the system Add the user to the group specified to the Group field

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions

Question

Define language and understand how it works.

Answered: 1 week ago