Question: SOLVE THIS EXERCISE CORRECTLY Create a program in Bash that implements the following features: The end user should be able to create a username in
SOLVE THIS EXERCISE CORRECTLY Create a program in Bash that implements the following features:
The end user should be able to create a username in the Ubuntu Linux environment.
The end user should be able to change the password for a user.
The end user should be able to delete a user.
The end user should be able to list activeexisting users.
Each feature must be implemented in a separate script and be called from the main program script.
Each time an end user creates a user, the program should add a log including a timestamp, in the adduserlogcsv file.
Each time an end user changes the password for a user, the program should increment the password reset counter in the passwordresetcounter.csv file and add a log including a timestamp, in the passwordresetlogcsv file.
Each time an end user deletes a user, the program should add a log including a timestamp, in the userdeletionlogcsv file.
The program should store active users, including their creation timestamps, in the activeusers.csv file.
Hints:
Use sudo useradd m username to create a user.
Use echo username:password sudo chpasswd to reset a user's password.
Use sudo userdel r username to delete a user. THE OUTPUT HAS TO BE LIKE THESE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
