Reference no: EM132495942
Linux Shell Scripting Assignment - Shell Scripting and Automated Account Management
One of the difficult tasks that Linux administrators face is to manage users or new employees. The difficulty can be to add deletion and change user attributes. In this task, your job is to write a shell script that performs the following tasks:
a. the script must accept first, last or middle names,
b. the script must be able to assign a new user to a group of student (if the group does not exist, the script must create user group),
c. based on the first name and last name, the script should generate a unique username with a length of 6 characters,
d. the script must check if the username is not exist bore added,
e. generate a complex password for the new user,
f. based on username scripts generate an email within the [email protected] domain,
g. the scripts must be written in a Sentinel loop,
h. display username, password, and email in a tabular format.
Note - One complete shell script for all the above task.