Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

In many cases, a system admin may need to create many accounts at the same time, e., at the beginning of a new school year.

In many cases, a system admin may need to create many accounts at the same time, e.g., at the beginning of a new school year. Write a shell script that creates 20 user accounts, with your choice of configuration variables, except that 10 of them should be in a group called “undergrad” and 10 others in the group “csgrad”. Only for clean-up purposes for this assignment, submit a script that removes these accounts also. Note that in practice, deleting a user’s account does not happen often and should be with sufficient advance notice and caution.

#!/bin/bashgroupadd undergradfor u in $(seq 00 09); doecho "user${u}:pwd${u}:$(expr 1000 + $u):undergrad:User Index ${u}:/home/SI${u}:/bin/sh";done > users.txtsudo newusers...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question