Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Adding Users - Part 1 Given a data file new_users.txt with the same record format as /etc/passwd shown below: username:password:uid:gid:GECOS:homedir:shell Write a shell script that

Adding Users - Part 1

Given a data file new_users.txt with the same record format as /etc/passwd shown below: username:password:uid:gid:GECOS:homedir:shell Write a shell script that will generate the command necessary to add each user. This command must include each of the following:

1. Username

2. GECOS

3. Home directory

4. Create home directory and load skeleton files from a directory /home/csadmin/SKEL

5. Specify shell Your program should DISPLAY the command generated for each record on the screen. DO NOT attempt to actually execute the command to add the users.

Adding Users - Part 2

Write a script that will take input from cs_roster.txt file made available by the IT department and generate the new_users.txt file that is used as input for the script in Adding Users - Part 1.

Prefix Number Section|username|Full Name|Student_ID|major1|major2 Please note:

1. No accounts should be created for students enrolled in CMPSC 1513

2. No accounts should be created for students enrolled in any course with CPSMA as a prefix except CPSMA 2923 which is our Data Structures class

3. The major code for Computer Science is 0510.

4. Any student that has declared Computer Science as his/her first or second major should have their home directory in /home/STUDENTS/majors

5. Any student that does not have Computer Science as a major should have home directory in /home/STUDENTS/nonmajors

Use a local copy of cs_roster.txt file for input directly. This will enable you to alter the file any way you wish for testing and so can I...

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_2

Step: 3

blur-text-image_3

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

=+2 How can the effectiveness of global virtual teams be improved?

Answered: 1 week ago

Question

=+1 What are the major issues related to international T&D?

Answered: 1 week ago