Question: create a bash script using the details provided below 1 . Create a group named after the last 5 digits of your STUDENT ID 2
create a bash script using the details provided below
Create a group named after the last digits of your STUDENT ID
Ask how many user accounts need to be created x number of accounts
Ask for the username prefix ie student or user
Create a loop that will run x times, creating user accounts
Before the account is created, check and see if the account name already exists, ie user exists. If the account does exist, then skip to the next available number, ie user or user
Add a password use something unique that incorporated the count you are at ie if rd time through the loop then password
Add each account to the ID group
If you want accounts created with prefix: DougisGreat, and DougisGreatDougisGreat already exists, then it should automatically start at
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
