Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Automating Repetitive Tasks: Account Creation You will create a script named (od-user. sh to create new users on the system from a specially formatted file.

image text in transcribed
image text in transcribed
Automating Repetitive Tasks: Account Creation You will create a script named (od-user. sh to create new users on the system from a specially formatted file. The data is formatted as a specially formatted text file called a CSV lcomma separated variables) fle. Normal capitalization will be used (Le. capital letters for the first letter of each part of the name). Your delimiter is the same as one produced by making a CSV file from an Excel spreadsheet (or equivalent). Your script will read the exportedv) file, change all upper case letters to lower case and form a (userid with the following algorithm: Skip the first line that is a header that defines each feld. The userid is to use up to the first 6 characters of the last name concatenated with the first 2 characters of the first name. Use the odduser command to create the accounts. Generate a random password that will be recorded and sent to the user. o Use any method you want to generate the random password. Hint: There are many ways to easily generate a random password. Google will be your friend here. o Record the generated username and password in a file called (new-users,dat in the following format: cusernanes,4passnord ausernon,passaord Make sure the user has a home directory the same as their userid Document your code and the successful testing of it. You will need to have error checking code and test cases for each error eanditinn cusername>, cpasswords cusername, cpas sword> . Make sure the user has a home directory the same as their userid Document your code and the successful testing of it. You will need to have error checking code and test cases for each error condition as well as a successful test case shown below. Use a CSV file formatted like below: First None", Last Name" Thomas,Moyer Fakhri, Abbas Mir,Pritom Alan, Turing Katherine,Goble Mary, Jackson Dorothy,Vaughan Ado, Lovelace Grace, Hopper Shafi,Goldwasser a combination of sed, bash script, (ank, whatever to automate the task

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 2 Lnai 6322

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215882X, 978-3642158827

More Books

Students also viewed these Databases questions