Question: Please do this in linux and provide screenshots. Prof. Orlando Karam maintains an Ubuntu Linux server for his class. Every semester he needs to create
Please do this in linux and provide screenshots.
Prof. Orlando Karam maintains an Ubuntu Linux server for his class. Every semester he needs to create an account for each student. It takes a lot of time to create these accounts one by one interactively. So he decides to automate the process by writing a script. You are Orlandos TA and volunteered to complete the task. Please propose a solution and write a script (either Bash or Perl) to implement your solution.
Basic requirements:
-The script reads from a CSV file for student information (exported from Excel). The file is made up of the lines like this:
-Jack,Zheng,jzheng3 //[first name],[last name],[campus email id]
-Mark,Cuban,mcuban2
-
-Please make up your own CSV file (with at least 5 students/lines) for testing purpose.
-Every student is assigned a common initial password (you will determine the password).
-Students are required to change their passwords at first login.
-All student accounts should be assigned to a student group. This group already exists in the system (you need to create this group first for testing purpose).
-Make some other assumptions if not specifically required.
Execute your script and take two screen shots:
a) The passwd file content, with the new accounts clearly shown
b) The shadow file content, with the new accounts clearly shown
Login with one of the new student account and show that you have successfully logged in using the newly created account. Take a screen shot showing the user id in the terminal.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
